A tag for questions about methods of displaying graphical data or images.
Questions tagged [draw]
3541 questions
1
vote
1 answer
issue in redo undo operation in my paintview android
MainActivity.java
public class MainActivity extends Activity implements OnClickListener {
private DrawingView drawView;
int mColor;
String savedFilePath = "";
public static ArrayList undonePaths = new ArrayList();
public static …

Harshal Kalavadiya
- 2,412
- 4
- 38
- 71
1
vote
1 answer
How to Draw Static or Dynamic graphs like those?
I have been learning from this site for really long time, but this is actually my first appearance here, that is my first question, I am a civil Engineer and i am writing a software for the design of Retaining Walls, I need to draw figures like…

Azzam Alrandi
- 21
- 6
1
vote
1 answer
C# Wpf - draw a graph in canvas based on min and max price
i am stuck finding the correct mathematical formula to set the correct y position in a canvas based on the lowest and highest price (int32) in a list of prices.
I hope you can help me form a formula which will solve my problem.
I have a canvas…

Avoider
- 13
- 1
- 3
1
vote
1 answer
Create loading-circle
I'd like to draw a circle part by part. The circle should act as a loading-circle and should update itself after something is completed and should colorize a part of the circle.
I've tried already to do that with a for-loop in the drawRect-method,…

Christian
- 22,585
- 9
- 80
- 106
1
vote
1 answer
Why does the DrawingArea not redraw?
I have this code in vala:
using Gtk;
class Elecciones : GLib.Object {
private Gtk.Window ventana;
private Gtk.Entry partido1;
private Gtk.Entry partido2;
private Gtk.Entry partido3;
private Gtk.DrawingArea tabla;
…

Dominuskernel
- 91
- 8
1
vote
1 answer
Is there a way to use Expression Blend 2012 Line Tool in Visual Studio 2012?
Is there a way to use Expression Blend 2012 Line Tool in Visual Studio 2012?
The actual Line Tool in VS draws a blank rectangle.

rPulvi
- 946
- 8
- 33
1
vote
1 answer
Delphi - Programming Algorithm to find next point to draw component
Good day All,
I am developing a program that will resemble warehouse in a "graphical" manner.
The representation is very basic and I am using:
1. TGroupBox (as parent container)
2. TPanel (as the shelves in the "warehouse" aka parent container.
The…

Marius
- 11
- 3
1
vote
3 answers
How to keep existing graphics on redraw
I'm pretty new to Processing. I'm trying to draw a line from the last rectangle my controlled "ball" was over, to the next rectangle it passes over. I've almost got it, but can't figure out how I should rearrange the code to make the lines last, and…

user3570818
- 23
- 3
1
vote
1 answer
How call onDraw method from another method to draw dynamically?
I want to redraw a view from another method (say setProgress) in a class extending View. How can I do this.
My view class is
public class SpinView extends View {
private Paint paint;
private Context context;
private Canvas canvas;
…

donison24x7
- 304
- 1
- 15
1
vote
0 answers
Drawing lines to connect objects in Processing
I'm doing a project that uses the ReactiVision framework and Processing for the graphical interface. Currently the code detects the fiducials, creates a square in its place and also shows the fiducial ID:
Detecting fiducials
There is more code that…

user3426597
- 41
- 3
1
vote
1 answer
Drawing on a transparent image in OpenCV
If i draw a line or some figure on a transparent image(4 channels) with a certain colour, after i save the image, the line/figure it's white, even though i draw with a red colour and i create a transparent image or i open one from internet. I'm…

Zack Kaytranada
- 351
- 3
- 11
1
vote
2 answers
How Can I correctly position the icons centered in a DBGrid?
The Column Width is: 48
The Icon Width is: 32.
That's how I would like to draw:
12345678901234567890123456789012345678901234567 => 48, Column witdh
--------1234567890123456789012345678901-------- => 32, Icon width …

EProgrammerNotFound
- 2,403
- 4
- 28
- 59
1
vote
1 answer
Koch Curve Povray Code
Here is a povray code that I am trying to digest:
#include "colors.inc"
camera {
location <4, 0, -10>
look_at <4, 0, 0>
}
background{White}
light_source { <10, 10, 5> color White}
light_source { <0, 20, 0> color White}…

Mack
- 665
- 2
- 11
- 20
1
vote
0 answers
How to draw a bar chart form data base, only series
I've been strugling for weeks trying desperatly to get a simple bar-chart out of a MySQL database.
The data base keeps the results of a simple test with : date, first name, last name, and the number of points for each answer to the 20 questions.
The…

user3495387
- 11
- 1
1
vote
2 answers
Draw a line in Cocos2d
I'm a newbie in Cocos2d.
I try to draw a simple line in Cocos2d:
-(void)draw
{
[super draw];
glColor4ub(0,0,0,255);
glLineWidth(2);
glColor4f(1.0, 1.0, 0.5, 1);
ccDrawLine(ccp(0,100), ccp(320,150));
}
but that shows the…

Sunary
- 121
- 1
- 14