Issues around forms and graphics being drawn onto a computer screen, windowing system or device
Questions tagged [drawing]
5923 questions
2
votes
1 answer
2
votes
2 answers
WPF text rendering inconsistencies
WPF 4.0 notoriously fixed the blurry text issue. Setting TextOptions.TextFormattingMode="Display" uses pixel hints to line up characters, which works really well to improve clarity.
However, it does not work while the program is running as a Windows…

Nick Whaley
- 2,729
- 2
- 21
- 28
2
votes
1 answer
Why isn't Quartz double buffering my drawInContext()?
I am rendering a simple line drawing (a line with some text in the middle) in a CALayer subclass via drawInContext(). I update this layer as the user is performing a gesture by calling setNeedsDisplay on it. The effect that I am seeing is what I…

Pat Niemeyer
- 5,930
- 1
- 31
- 35
2
votes
0 answers
Print a picture in the middle of a page C#
i have a Image loaded in c# and i would like to print it in the size of 269 x 148 mm to a DIN A4 page in landscape exactly in the middle. When i print it via PDF Printer in a file, it works perfect. But when i print it with my Default Printer, the…

Christian
- 75
- 10
2
votes
1 answer
How to redraw quickly on a canvas. C# WINFORM
For my software, I am using a Timer from Systems.timer library, every time my timer ticks, it calls a method for repainting my screen. I do not want to clear the screen, then to repaint on it. I just want to paint the new areas on it directly.
At…

ITbob
- 69
- 1
- 8
2
votes
0 answers
Drawing a line between two words in the page?
I have a page full of text with repetitive words, and I need to find a way to map the similar words together by drawing a line between them. (it doesn't matter if it crosses the word or if it goes around it).
What is the best way/library to do that…

salouri
- 760
- 1
- 8
- 19
2
votes
1 answer
Drawing a math function / relation / curve
I am wanting to replicate the equation plotting functionality provided by the Desmos Graphing Calulator, and other graphing tools, such as Wolfram Alpha, and MatLab. I am planning on using WebGL to plot the equations.
This simple sine equation I am…

Brendan Annable
- 2,637
- 24
- 37
2
votes
2 answers
How to extend a drawn line in OpenCV?
I have a project to create a face detection program. One of the requirements is for me to draw a line across the center of the face.
Now the way I have done this is by first drawing a line across the two eyes (by getting each eye's coordinates and…

Sheraz
- 23
- 1
- 4
2
votes
1 answer
Wrong Stroke width drawing circle on custom view Android
I am writing a custom view in android. I want to draw a circle that cover all width and height of my view. this is my code
private void init() {
bgpaint = new Paint();
bgpaint.setColor(bgColor);
bgpaint.setAntiAlias(true);
…

aTa
- 641
- 2
- 8
- 20
2
votes
2 answers
Java: Fastest way to draw text?
I'm trying to write a program that just creates an image out of text (e.g. write "hello" on a white square and store the image), which sounds simple but it must be done quickly. I tried the Java2D library but drawing onto a BufferedImage takes ~2…

Booley
- 819
- 1
- 9
- 25
2
votes
0 answers
Java Rotate and change drawn Image's coords at the same time
I'm trying to make Norths directions diagram like this:
http://www.physicalgeography.net/fundamentals/images/azimuth.jpg
Diagram I made is dynamic. Every time I put new latitude and longitude, the lines change place.
The problem is that I dont know…

wojteck
- 71
- 6
2
votes
1 answer
OpenCV arrowedLine function
I try to drow an arrowedLine on my image but i get an error.
Please take a look on my code:
point1 = Point(x, y);
vect.push_back(point1);
for (int i = vect.size()-5; i>=0,i < vect.size() - 1; i++)
{
…

Mahagney Saleh
- 117
- 2
- 11
2
votes
1 answer
Paper.js, gap between cursor and canvas
I am trying to build a simple drawing app with Paper.js. I can draw with the mouse but I have a gap between the cursor and the line drawn on the canvas.
I have realised that the navigation menu on top of the webpage is pushing down the cursor…

Edmond Tamas
- 3,148
- 9
- 44
- 89
2
votes
1 answer
WPF - Drawing image to canvas and erasing and redrawing repeatedly
I currently have a canvas with an image background in a WPF application. Above this canvas, I have a slider control. I need to, as users slide the value of the slider back and forth, draw a red line straight down across the canvas. I need to do…

JToland
- 3,630
- 12
- 49
- 70
2
votes
1 answer
How can I use onDraw on Fragment?
I have Fragment activity where I display contents using RelativeLayout. I am displaying text and everything is working OK.
Now I would like to add some graphics information and I have problems. There is no onDraw() method in Fragment.
Is there a way…

UrosP
- 111
- 1
- 2
- 4