Top "Drawing" questions

Issues around forms and graphics being drawn onto a computer screen, windowing system or device

How can I draw lines into numpy arrays?

I would like to be able to draw lines into numpy arrays to get off-line features for on-line handwriting recognition. …

python numpy drawing
WPF: How to draw a circle and drag it around?

I am new to WPF. I want to draw a small circle on Canvas when I click mouse and be …

c# wpf drawing drag geometry
How to draw good looking arrows in Matlab?

I have been trying to draw arrows in Matlab in my figure but they all look terrible. Also, I want …

matlab graph drawing matlab-figure figures
Draw a equilateral triangle given the center

How do I draw an equilateral triangle given the center as cx and cy and the radius of the centroid …

language-agnostic drawing shape
How to redraw or refresh in OnRender?

I want to draw something dynamically. Following code shows my OnRender. I'm setting DrawItem somewhere in my program where I …

c# wpf drawing onrender
What exactly is a canvas path, and what is the use of ctx.closePath()?

I'm working on an HTML5 game. I need to draw tail lines in the canvas and check for intersections in …

javascript html canvas drawing jcanvas
Android Canvas Coordinate System

I'm trying to find information on how to change the coordinate system for the canvas. I have some vector data …

android drawing canvas coordinate-systems
Blackberry - how to resize image?

I wanted to know if we can resize an image. Suppose if we want to draw an image of 200x200 …

graphics blackberry drawing custom-controls image-scaling
How to draw a line in Swift 3

I would like the user to touch 2 points and then a line is drawn between those two points. Here is …

swift drawing
Android: How to get a custom view to redraw partially?

I have a custom view that fills my entire screen. (A piano keyboard) When a user touches the key, it …

android drawing partial invalidation