Top "Drawing" questions

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

Fast 2D graphics in WPF

I need to draw a large amount of 2D elements in WPF, such as lines and polygons. Their position also …

c# wpf performance drawing drawingvisual
Converting System.Windows.Media.Color to System.Drawing.Color

private void DialogFont_Load(object sender, EventArgs e) { LoadInstalledFonts(); SetupInitialDialogSelections(); lblPreview.ForeColor = colorPicker1.colorPickerControlView1.CurrentColor.Color; } I'd like to convert …

c# colors drawing
Create flow diagram programmatically

I want to visualize components and connections of a HVAC system with .NET/C#. The diagrams will just include a …

c# .net drawing charts flowchart
Draw another image on a UIImage

Is it possible to add another, smaller, image to a UIImage/UIImageView? If so, how? If not, then how can …

iphone objective-c uiimageview uiimage drawing
How to draw and scale a bitmap on a canvas using bicubic interpolation in Android?

I want to draw a bitmap on a canvas with bigger size than it is. I can use canvas.drawBitmap(…

android drawing resize bitmap bicubic
UIBezierPath stroke 1px line and fill 1px width rectangle - different results.

Here is a simple drawing - (void)drawRect:(CGRect)rect { //vertical line with 1 px stroking UIBezierPath *vertLine = [[UIBezierPath alloc] init]; […

ios drawing uibezierpath
How can I draw sound data from my wav file?

First off this is for homework or... project. I'm having trouble understanding the idea behind how to draw the sound …

java audio drawing wav javasound
Opengl pixel perfect 2D drawing

I'm working on a 2d engine. It already works quite good, but I keep getting pixel-errors. For example, my window …

opengl drawing pixel-perfect
Drawing on Canvas - PorterDuff.Mode.CLEAR draws black! Why?

I'm trying to create a custom View which works simple: there is a Bitmap which is revealed by arc path …

android canvas drawing porter-duff
Android Paint stroke width positioning

Given this code to draw a line: Paint p; p = new Paint(Paint.ANTI_ALIAS_FLAG); p.setColor(android.graphics.…

android drawing paint stroke