Top "Draw" questions

A tag for questions about methods of displaying graphical data or images.

How to fill a bezier path with gradient color

I have a UIBezierPath inside my custom UIView draw(_ rect: CGRect) function. I would like to fill the path with …

ios uiview swift3 core-graphics draw
NetworkX node attribute drawing

Im using networkx for visualization. I see when I use the function draw_networkx_edge_labels I can retrieve the …

attributes draw networkx
How to draw a transparent stroke (or anyway clear part of an image) on the iPhone

I have a small app that allows the user to draw on the screen with the finger. I have a …

ios objective-c draw touches
android fast pixel access and manipulation

I'm trying to port an emulator that i have written in java to android. Things have been going nicely, I …

android image android-canvas draw pixel
SVG connect two points with a line

Is there any way to connect two point using a line in SVG .I am having the following to create …

svg line draw jquery-svg
How to rotate a rectangle drawn on canvas in Android?

I am drawing a text on android canvas using the following piece of code Rect rect = new Rect(); paint.getTextBounds(…

android rotation android-canvas draw rect
OpenGL is it better to batch draw or to have static VBOs

What is preferrable, from an effiency point of view (or another point of view if it's important) ? Situation An OpenGL …

performance opengl draw vbo
How to draw gridline on WPF Canvas?

I need to build a function drawing gridline on the canvas in WPF: void DrawGridLine(double startX, double startY, double …

c# wpf algorithm draw
Drawing a filled circle or rectangle inside a DataGridViewCell in C# Winforms

I want to draw a small filled circle in the center of a DataGridViewCell. A rectangle can do the trick …

c# winforms datagridview draw geometry
What is the best way to draw text along with geometry?

In WPF, I'm starting to use classes such as LineGeometry, EllipseGeometry, GeometryGroup, Path... in order to draw 2D graphics. I …

wpf text geometry draw