Top "Drawing" questions

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

Prevent accidental select/drag highlight

I have a drawing application using html5 canvas. When the user is drawing and pen slips out of the canvas …

html canvas drawing highlight
How to detect iPhone movement in space using accelerometer?

I am trying to make an application that would detect what kind of shape you made with your iPhone using …

iphone drawing accelerometer
Sankey diagram in javascript

I want to draw a Sankey diagram using Javascript. Can anyone provide some direction regarding the algorithms or libraries that …

javascript drawing data-visualization diagram sankey-diagram
Draw a parallel line

I have x1,y1 and x2,y2 which forms a line segment. How can I get another line x3,y3 …

c# graphics geometry drawing computational-geometry
Avoid text overlap in MATLAB figures

When inserting text into MATLAB figures programmatically using text(x,y,'label'), I often find that the text blocks overlap, …

matlab graphics drawing overlap
Drawing diagonal lines on an image

Hi im trying to draw diagonal lines across an image top right to bottom left here is my code so …

python drawing jython jes
drawBitmap() and setPixels(): what's the stride?

Could please somebody explain me (ASCII is really welcome) what the stride argument stands for in Canvas.drawBitmap() and in …

android canvas bitmap drawing
Can I suspend redrawing of a form until I have performed all updates?

Using C# and .Net 2.0, I'm using an irregularly shaped form (TransparencyKey, FormBorderStyle = None, etc...) and want to allow "normal" bordered …

.net winforms drawing transparency redraw
What's the preferred/recommended way to draw a line in NSView-drawRect: method?

I couldn't found any line drawing primitive in Cocoa at NSView level. The only thing I've been found is NSBezierPath. …

cocoa drawing line nsview
Scaling/Translating a Shape to a given Rectangle using AffineTransform

I'm trying to scale/translate a java.awt.Shape with AffineTransform in order to draw it in a defined bounding …

java graphics drawing shapes affinetransform