Questions tagged [drawing2d]
110 questions
2
votes
2 answers
Primitive thickness - DX10
i recently stepped into primitive rendering in directX10. I need that because i want to convert my ingame chat from directx9 to 10 due my huge performance lag being forced by the games weak dx9 support. The lines are being rendered fine on the…

Frank
- 31
- 5
2
votes
1 answer
C# Bitmap To PictureBox is not working well
I'm trying to make some gradient & preview it in a pictureBox without saving but it seems not working:
if (isChanged == true)
{
re = new Rectangle(0, 0, int.Parse(textBox5.Text), int.Parse(textBox4.Text));
…

Varand Vartanian
- 75
- 9
2
votes
2 answers
How to change colors of a GDI+ LinearGradientBrush?
I have to write several small vertical gradients (on a loop) and so I think it's faster to re-use an existing LinearGradientBrush (correct?)
But this isn't what I expected to happen...
Drawing2D.LinearGradientBrush myBrush = new…

Camilo Martin
- 37,236
- 20
- 111
- 154
2
votes
2 answers
Paper.js eraser tool made using layers and blendMode
I am making simple drawing app using Paper.js and Node.js. There are 2 layers:
- bottom layer with images
- top layer for drawing.
Layer with images is background to drawing layer.
I want to make a simple eraser tool which will erase drawing on a…

Luke
- 133
- 1
- 8
2
votes
1 answer
Array of points to image
I'm stuck trying to convert an array of points which represent a drawing(simple 2D black lines) taken from a mobile phone. I pass that array of points to a server which then emails that drawing to another person.
I can't find a way to convert that…

maty_nz
- 280
- 2
- 4
- 16
2
votes
4 answers
Logarithmic plotting of points
I was wondering if give a number of 2D points, how do calculate where to draw a point on a screen in a logarithmic y scale?
I tried to just take the logarithm of all the y-values of points and than plot them 'normally' (plot point [x, log(y)] => on…

Samuel
- 18,286
- 18
- 52
- 88
1
vote
0 answers
Improve resolution for resizing gif(animated) images using Drawing2D in c#
My image resizer will resize all images perfectly but gif(animated) images are somewhat grainy.
Currently I am using the InterpolatioMode as HighQualityBicubic. Is there any other parameters which would increase the resolution or any ideas how to…

tmjam
- 1,029
- 2
- 12
- 25
1
vote
1 answer
Arrow with closed head
I'm using an arrow control that I found on the net :
http://blogs.microsoft.co.il/blogs/tomershamam/archive/2008/01/23/wpf-arrow-and-custom-shape.aspx
I've tried to change it to closed arrow like in the pic below w/o success.
Can anyone give an…

Erez
- 6,405
- 14
- 70
- 124
1
vote
0 answers
Canvas lineTo drawing and blending
I want to draw a lot of lines using Canvas.lineTo. The lines will sometimes overlap on themselves and i want its color to alpha blend and "add up" when this happens, as I'm using low opacity e.g. "#fff4".
It seem if i call lineTo for all the lines…

Erlend
- 1,711
- 1
- 22
- 25
1
vote
0 answers
Graphics 2D - How do I call my method as it takes (Graphics) as parameter
I'm trying to make some custom fields/circles, but I can't figure out how to call my method, as it needs to take Graphics as a parameter.
I'm already using the standard paint() and paintComponent() in other methods and do not want to move these…

Narj
- 39
- 5
1
vote
0 answers
WinGDI SetWorldTransform Inverse
I need an inverse transformation.
I start with a CPoint(x0, y0);
I do a rotation and translation so that in my new coordinate system, (x0, y0) becomes (0,0) and I draw everything in the new coordinate system (which may have other that right-angle…

flounder
- 141
- 6
1
vote
1 answer
How do I draw an angled Line
I tried to do just draw some lines and shapes in a window with c (without a library which does it for me with one or two lines) to learn a bit. I can already draw horizontal and vertical lines and rectangles. Now, I want to draw angled lines.
This…

Evelknet
- 17
- 5
1
vote
1 answer
How to rotate 2d object in C#
Basically i have a windows form that user will be able to draw different shapes(e.g square, circle and triangle), user will be able to highlight any of these shapes after drawing and then control that highlighted shape by moving or rotating it, i…
user3270220
1
vote
0 answers
JAVA: Black screen occurs when starting the application when using SwingNode in JavaFX
We are having a school project, where we are drawing a highly detailed map on a canvas using JavaFX and integrating Swing via JFXPanel. Everytime we open the application the canvas is black until either resized or any interaction with the canvas has…

SIGC
- 11
- 2
1
vote
2 answers
Where can I find a Javascript drawing canvas?
I want to build a drawing program in JS. (jQuery preferred but not mandatory).
Anyway, my vision is a big, blank, white canvas with a simple grid. The user could drag "layers" to the grid (such as icons, pictures, etc). Also, it would support…

cbmeeks
- 11,248
- 22
- 85
- 136