Issues around forms and graphics being drawn onto a computer screen, windowing system or device
Questions tagged [drawing]
5923 questions
15
votes
20 answers
What is the ultimate program to make a drawing of a database model?
One of the first things I do when I'm on a new project is design a database model. To visualize the model I use a 7 year old version of Smartdraw. Maybe it's time for something new. What is the ultimate program to make a drawing of a database model.…

boes
- 2,835
- 2
- 23
- 28
14
votes
4 answers
Social network directed graph library for .NET
I am on a project where I have multiple users of a portal and they are connected to other users of the portal. Now we are asked to draw a “Social Network” relationship graph to see the relationships. The constraint is that this graph has to be seen…

MRFerocius
- 5,509
- 7
- 39
- 47
14
votes
2 answers
Android draw ball trail
There are balls in my app that just fly through display. They draws as I want. But now I want to draw the trail behind them.
All I could make is just drawing by canvas.drawPath something like following picture:
But it is not what I want. It should…

Ircover
- 2,406
- 2
- 22
- 42
14
votes
2 answers
How to display raw data as an image (Visual Studio c#)
I will be receiving some raw data that will be stored in a byte array, where each 2 bytes is a pixel value (16 bits/px). To start with, the array will contain 100x100*2 bytes (enough for a 100x100 pixel image). I would like to display this data in…

Nazar
- 820
- 5
- 13
- 36
14
votes
4 answers
Drawing arrow with XAML
I don't know how can I draw an arrow with XAML. I haven't any code at the moment.
Someone can help me to make this draw with XAML code ?
Thank you for your help.

Moussawi
- 393
- 1
- 6
- 22
14
votes
2 answers
How to rotate image x degrees in c#?
I have done some searching and i can not find any function thats doing what i whant it todo.
I have a image file of a scanned document with text, but the document is some degrees rotated so i whant to rotate it so the text being inline with each…

RickardP
- 2,558
- 7
- 34
- 42
14
votes
2 answers
NSBezierPath drawing
I want to do a rounded rectangle outline on an NSImage and I figured that using NSBezierPath would be the best way. However, I ran into a problem: instead of drawing a nice curve, I get this:
For reasons I can't understand, NSBezierPath is drawing…

Alex
- 5,009
- 3
- 39
- 73
14
votes
1 answer
Drawing Antialiased circle using Shaders
I am new to shader programming. I am trying to draw a circle with glsl. I used a point with a Size and tried to filter out the points outside the radius.(Altering the alpha value).
The code is as follows:
Fragment Shader:
#version 130
varying vec2…

user1754682
- 141
- 1
- 1
- 4
14
votes
7 answers
I need a pixel-perfect triangle fill algorithm to avoid aliasing artifacts
I'm assisting someone with user interface code to visualise a mathematical image analysis.
During this process we'll be segmenting part of a 2D shape into triangles, and filling some of these triangles in on the UI.
We're looking for a fill…

Tynam
- 440
- 1
- 3
- 15
13
votes
2 answers
CGPathAddArc vs CGPathAddArcToPoint
Apple's CoreGraphics library defines two functions for describing an arc.
CGPathAddArc adds an arc based on a center point, radius, and pair of angles.
CGPathAddArcToPoint adds an arc based on a radius and a pair of tangent lines.
The details are…

benzado
- 82,288
- 22
- 110
- 138
13
votes
2 answers
Drawing on a UIImageView inside a UIScrollView
I have a UIImageView inside a UIScrollView which automatically zooms out to fit the image supplied. The user can zoom as usual with a pinch gesture, and the pan gesture is set to require two touches since the drawing takes precedence.
On launch,…

John Doe
- 298
- 1
- 3
- 16
13
votes
3 answers
Drawing 1-pixel thick, aliased lines in real-time
A brief background: I'm working on a web-based drawing application and one of the tools I'm implementing is a 1-pixel thick pencil. The tool allows the user to draw 1px aliased lines on the canvas.
In order to determine where the user is drawing on…

Xenethyl
- 3,179
- 21
- 31
13
votes
6 answers
Is it really so difficult to draw smooth lines in Unity?
I been trying for a while to draw smooth lines in Unity but with Line Renderer I obtained only jagged lines with the corners not rounded, in particular when the angle of curvature is really small . I incresed the value of antialiasing in quality…

rickyxd
- 237
- 1
- 6
- 14
13
votes
1 answer
Draw an Inset NSShadow and Inset Stroke
I have an NSBezierPath and I want to draw in inset shadow (similar to Photoshop) inside the path.
Is there anyway to do this? Also, I know you can -stroke paths, but can you stroke inside a path (similar to Stroke Inside in Photoshop)?
Update…

Alexsander Akers
- 15,967
- 12
- 58
- 83