canvas

Silverlight: Canvas overflows

Hi all! I have created a Canvas, and within it I placed a StackPanel. The StackPanel is horizontal, and it accepts a list of thumbnailed images. The Canvas has a fixed size. When I put more thumbnails than the Canvas width can hold, the StackPanel is supposed to overflow from the Canvas, so I can move it to center the current thumbnail....

Explorer canvas drawImage doesn't show anything.

I'm trying to use the explorer canvas project to get HTML5 canvas like functionality in IE. I'm using the latest v3 release. The problem I have is that the html it renders encloses the VML in a div which looks like the following. <div style="position: absolute; width: 0px; height: 0px; overflow: hidden"> ...VML </div> This causes t...

canvas tag drawing lines problem.... ....

I have a canvas tag, I use it draw lines on that, the canvas is a square. I use "space" to record the space between two lines. and I have canvasWidth and canvasHight to record the canvas size, actually, they are the same numnber....320 var x=0; for (var i = 0; i < 5; i++) { x = parseInt(x + space); ...

How to draw a rounded Rectangle on HTML Canvas?

I found that there are only can fill rectangle, but no rounded corner one, how can I do that? ...

Slow Canvas Element

Hi Using the Canvas element, I draw a line from one element to another element Another element is draggable, and when dragging the element the line follows the draggable element. My problem is that the rendering apears slow (Fx 3.5 on a Mac PowerBook) I think I have seen much better performance in Canvas before Anyone with Canvas exp...

In Flex, how do you put an Image inside a Canvas without it overflowing?

I have an Image nested inside a Canvas. <mx:Canvas> <mx:Image source="@Embed(source='assets/library.swf', symbol='Waves')" /> </mx:Canvas> I'd like the Image not to overflow the bounds of Canvas. But when I set width and height on the Canvas, my Image disappears. Canvas also doesn't seem to respect horizontalScrollPolicy. Seems easy ...

How to model a scrolling line graph in WPF?

I'm trying to re-learn WPF and I've started a little project that has a line graph, kind of like the CPU performance one you would see in Taskmanager. The graph is basically a canvas that has a punch of lines added to it's children and is based on an Avalon sample I found here http://msdn.microsoft.com/en-us/library/aa480159.aspx Curren...

HTML5/Canvas: Web page preview?

Can I use canvas to generate a thumbnail of a web page? I have a web page that grows in length, vertically, the longer a user's on it (via Ajax), requiring the user to scroll vertically to see the new content on the page. (Think of something like a chatroom.) What I'd like to do is generate a little thumbnail of everything in the brows...

Using the SVG evenodd fill-rule in the canvas element

Does anyone know if it's possible, either natively or mathematically with javascript, to implement the evenodd fill-rule from SVG in the HTML5 canvas element? Links to projects that do this would be helpful. Thanks! ...

WPF. How to show only part of big canvas?

Lets say I have a canvas defined to be 1000x1000 big. Is it possible to only show a 100x100 part of it in a Viewbox(or a rectangel)? Any help is apreciated..... ...

is there any event that raise before updateComplete() for a Canvas?

Hi, I have an app with a canvas which content changes dynamically. In my app there is a progressbar which I want to show while the canvas update is executed. Is there any event to call just before the update starts? Thanks! ...

How can I use the HTML5 canvas element in IE?

I am trying to use the HTML5 canvas element to draw some arcs and circles - this works perfectly in FF but IE8 does not seem to support it. Now, there exist Javascript libraries which seem to make IE8 work well with Canvas. An example can be found here: http://thejit.org/Jit/Examples/Hypertree/example1.html I have read their entire so...

Canvas Tutorial / Reference

Can somebody please refer me to a comprehensive tutorial on Canvas which covers all properties / functions? I also need a definite reference on Canvas - something like w3schools ...

Upload image thumbnail to server, without uploading whole image

As far as I know, what I ask here isn't possible, but I thought I'd ask anyway in case I'm missing something. Suppose you want to let users upload JPG images, and these images are scaled into smaller icons and the original images are always discarded and never required again. Is there any way that would commonly work in most modern brow...

Using Raphael JS to float shapes around the screen

I am working on having some shapes floating around the screen at random. Eventually they will interact with each other, as well as have onclick functions. I can get the circles to render on screen, but I cannot get them to have motion. It seems that the .animate() function is not what I need here. Does anyone know how I would go abou...

Javascript Canvas Flowcharting Project?

I am looking for a Javascript project which makes use of canvas to allow the creation of diagrams/flowcharts in the browser. Are there any active projects like that alive? ...

Javascript Canvas Element - Array Of Images

I'm just learning JS, trying to do things without jQuery, and I want to make something similar to this however I want to use an array of images instead of just the one. My image array is formed like this var image_array = new Array() image_array[0] = "image1.jpg" image_array[1] = "image2.jpg" And the canvas element is written like t...

3d widget in XULRunner application

Hi all, Does anyone have any experiences trying to include a 3d widget in a XULRunner application? One direction I've been trying is embedding a Java3d applet, but there seem to be a host of problems controlling that applet from the JS of the main application. Another possibility would be if there was some sort of javascript library usi...

How to dynamically load internal xaml in Silverlight 3 at runtime?

I have a few internal Canvas xaml files which I want to load dynamically at runtime. For example, I want to display the Canvas in a page. However, I cannot seem to get it to work. I've tried using XamlReader, Application.LoadComponent, and using an XDocument; all to no avail. I cannot seem to find the best practice for this on-line ei...

How to send canvas.Children over socket?

I can't serialize it, therefore can't get byte[]. Network whiteboard with .net is impossible?) ...