tagged [canvas]
Downloading Canvas element to an image
Downloading Canvas element to an image What are the different ways to save a canvas object? In my research, I've found two approaches: Another way is to take a snapshot. Are there other ways to do thi...
- Modified
- 14 Nov at 19:25
How to save entire Scrollable canvas as Png
How to save entire Scrollable canvas as Png I have a Canvas class that implements VirtualizingPanel and IScrollInfo. This class is contained inside a ScrollViewer. How can I save the contents of the e...
How can you find the height of text on an HTML canvas?
How can you find the height of text on an HTML canvas? The spec has a context.measureText(text) function that will tell you how much width it would require to print that text, but I can't find a way t...
- Modified
- 15 Jul at 23:6
Best IDE for HTML5, Javascript, CSS, Jquery support with GUI building tools
Best IDE for HTML5, Javascript, CSS, Jquery support with GUI building tools I am doing a project using the RGraph HTML5 canvas package to draw graphs. I need to build a good looking GUI aswell. I have...
- Modified
- 17 Oct at 13:47
How to center canvas in html5
How to center canvas in html5 I've been searching for a solution for a while now, but haven't found anything. Maybe it's just my search terms. Well, I'm trying to make the canvas center according to t...
HTML5 Canvas 100% Width Height of Viewport?
HTML5 Canvas 100% Width Height of Viewport? I am trying to create a canvas element that takes up 100% of the width and height of the viewport. You can see in my example [here](http://jsfiddle.net/mqFd...
Drawing an image from a data URL to a canvas
Drawing an image from a data URL to a canvas How can i open an image in a Canvas ? which is encoded I am using the The output is the encoded base 64 image. How can i draw this image on a canvas? I wan...
What's the best way to set a single pixel in an HTML5 canvas?
What's the best way to set a single pixel in an HTML5 canvas? The HTML5 Canvas has no method for explicitly setting a single pixel. It might be possible to set a pixel using a very short line, but the...
Accessing JPEG EXIF rotation data in JavaScript on the client side
Accessing JPEG EXIF rotation data in JavaScript on the client side I'd like to rotate photos based on their original rotation, as set by the camera in JPEG EXIF image data. The trick is that all this ...
- Modified
- 12 Jan at 00:44
How do I handle Canvas.Top change event in WPF?
How do I handle Canvas.Top change event in WPF? I have an element positioned on `Canvas` using attached properties `Canvas.Top` and `Canvas.Left`. Then using animations the element is moved to differe...
- Modified
- 3 Feb at 14:31
How to set the background image of a html 5 canvas to .png image
How to set the background image of a html 5 canvas to .png image I would like to know how it is possible to set the background image of a canvas to a .png file. I do not want to add the image in the b...
- Modified
- 9 Mar at 04:36
Chart.js canvas resize
Chart.js canvas resize In ([Android WebView HTML5 canvas error](https://stackoverflow.com/questions/19167827/android-webview-html5-canvas-error)) i posted a question regarding plotting graphs using Gr...
Setting Canvas properties in an ItemsControl DataTemplate
Setting Canvas properties in an ItemsControl DataTemplate I'm trying to databind to this `ItemsControl`: By using this `DataTemp
- Modified
- 23 May at 07:59
Drawing things on a Canvas
Drawing things on a Canvas How would I draw something on a Canvas in C# for Windows Phone? Okay, let me be a little more clear. Say the user taps his finger down at 386,43 on the canvas. (the canvas i...
- Modified
- 15 May at 16:44
How to draw circle by canvas in Android?
How to draw circle by canvas in Android? I want to draw circle by canvas. Here is my code: [MyActivity.java]: [View.java]: ``` public class View extends SurfaceView { public View(Context context, in...
- Modified
- 19 Jul at 10:51
Get pixel color from canvas, on mousemove
Get pixel color from canvas, on mousemove Is it possible to get the RGB value pixel under the mouse? Is there a complete example of this? Here's what I have so far: ``` function draw() { var ctx = ...
- Modified
- 3 Sep at 20:54
Android canvas draw rectangle
Android canvas draw rectangle how to draw empty rectangle with etc. borderWidth=3 and borderColor=black and part within rectangle don't have content or color. Which function in Canvas to use Thanks. I...
- Modified
- 7 Dec at 20:34
How to draw a rectangle on a WPF canvas
How to draw a rectangle on a WPF canvas I'm trying to draw a `Rectangle` on a `Canvas` as follows: ``` System.Windows.Shapes.Rectangle rect; rect = new System.Windows.Shapes.Rectangle(); rect.Stroke =...
Drawing an SVG file on a HTML5 canvas
Drawing an SVG file on a HTML5 canvas Is there a default way of drawing an SVG file onto a HTML5 canvas? Google Chrome supports loading the SVG as an image (and simply using `drawImage`), but the deve...
WPF: how to make the (0,0) in center inside a Canvas
WPF: how to make the (0,0) in center inside a Canvas The WPF Canvas has a coordinate system starting at (0,0) at the top-left of the control. For example, setting the following will make my control a...
- Modified
- 23 May at 12:25
Disable arrow key scrolling in users browser
Disable arrow key scrolling in users browser I'm making a game using canvas, and javascript. When the page is longer than the screen (comments, etc.) pressing the down arrow scrolls the page down, and...
- Modified
- 23 May at 12:17
servicestack and facebook canvas app authentication
servicestack and facebook canvas app authentication the facebook canvas app gets a "signed_request" parameter when user visits the canvas url via facebook. How do i use this to authenticate the user o...
- Modified
- 2 Jul at 11:4
How to clear Tkinter Canvas?
How to clear Tkinter Canvas? When I draw a shape using: Does Tkinter keep track of the fact that it was created? In a simple game I'm making, my code has one `Frame` create a bunch of rectangles, and ...
- Modified
- 25 Jun at 19:7