I would like to create an online, simple WYSIWYG drawing editor allowing people to draw rectangular shapes. I'm thinking of a grid which the lines and points can snap on to, ensuring that the lines are strictly vertical or horizontal.
I will be parsing the rectangular shapes to obtain some area calculations and compute certain things.
H...
I am developing a control that is a rectangle area and will draw an ellipse in the rectangle area when a trigger occurs. This control will be able to host other controls like, textbox's, buttons, etc. so the circle will be drawn around them when triggered. I want the circle being drawn as an animation like you were circling the inner c...
Hi,
I have a progress bar which inherits from JSlider to provide highlighting functionality. Highlights can be added to the slider at a point (and a Color) and these are then painted onto the control. As follows:
The problem is that I cannot get the highlights in the right place, they need to be in the same location as the markers. I...
is there any known algorithm(or package with the algorithm already implemented) to draw a graph in a way that it has symmetry ? for example most of these show symmetry. but putting the nodes evenly distributed on a circle isn't the best way to symmetry is exposed.
...
how can i enable user to draw line in the form in c#
user draw with left mouse button and earse the line if he draw with the right mouse button
...
I need to "animate" an arrow. It can go in any direction (up, down, left, right and diagonals) and the arrowhead will be at the end. It needs to appear as if it is growing from orgin to the end.
To make matters more complicated it has to be in a user control so it is possible to add to the controls collection in the forms and remove it t...
hi,
I am developing image saving app. i am using two high resolution images(1200*1600) to get single image of high resolution(1200*1600), which is drawing from both images like photo in frame . here i am using renderInContext to draw a single image. but its giving memory warning issue and crashes the app. its happening consistently. plea...
Hi all,
I am working on a simple form builder which hosts "live" .NET objects as well as performing its own drawing for guidelines (grid), object selection etc. Things are going well but as you see below, the custom painting is not exactly optimal since it always paints behind the hosted controls.
How can I modify my painting logic t...
What I'm specifically grappling with is not just the layout of a graph, but when a user selects a graph node and starts to drag it around the screen area, the line has to constantly be redrawn to reflect what it would look like if the user were to release the node. I suppose this is part of the layout algorithm?
Also some applications ...
Should I dispose GDI+ object before its creation?
Is recommended to always Dispose GDI+ object after using it.
by e.g.
Pen p = new Pen(Color.Green);
// use 'p'
p.Dispose();
now, if I have this situation:
Pen p = new Pen(Color.Green);
// use green 'p'
p = new Pen(Color.Red); // Should I Dispose my 'p' first?
// use red 'p'
p.Disp...
I am writing to Graphics object dynamically and don't know the actual size of final image until output all peaces to the Graphics.
So, I create a large image and create Graphics object from it:
int iWidth = 600;
int iHeight = 2000;
bmpImage = new Bitmap(iWidth, iHeight);
graphics = Graphics....
I want to create a C# app which rests in the system tray.
However, I would like this application to overlay certain graphic elements / drawing on top of the screen above all windows at certain times.
So, for example, while my application is running, even though minimized to the tray, it will draw certain shapes on top of the screen r...
I am trying to draw images to the iphone screen by changing the images of a UIImageView in a loop. But since there was no much response on the screen than two or three images being drawn and skipping others I need another method.
I am trying to show 80 png images that are 320*480 in size at 30 images per second.
Please suggest the fast...
I need to draw custom shapes. Now when a user clicks on several points on the panel I create a shape using a polygon.
public void mouseClicked(MouseEvent e) {
polygon.addPoint(e.getX(), e.getY());
repaint();
}
But I don't know if this is the best way to draw custom shapes.
It should be possible to edi...
One thing that seems particularly easy to do in the Flash IDE but difficult to do with code is to outline an organic shape. In the IDE you can just use the inkbucket tool to draw a stroke around something. Using nothing but code it seems much trickier. One method I've seen is to add a glow filter to the shape in question and just mess wi...
I'm writing an android application that draws directly to the canvas on the onDraw event of a View.
I'm drawing something that involves drawing each pixel individually, for this I use something like:
for (int x = 0; x < xMax; x++) {
for (int y = 0; y < yMax; y++){
MyColour = CalculateMyPoint(x, y);
canvas.drawPoint(x, y, MyC...
How can I calculate the points to draw 2 parallel lines.
I know the start and end points for the centre of the parallel lines. To makes thing a little bit harder, it needs to support straight and Bezier curved lines.
...
hi
i want to merge two images in blackberry. one image is a big image and other image is a small one. position of small image will be define by developer. what are the possible ways can any one help me out it's urgent.
thanks
...
Is there a way to remove the LineShape shadow effect when selecting the lineShape?
I tried
Protected Overrides Sub OnPaint(ByVal e As System.Windows.Forms.PaintEventArgs)
Dim g As Graphics = e.Graphics
g.SmoothingMode = SmoothingMode.AntiAlias
Dim oldmode As SmoothingMode = g.SmoothingMode
g.DrawLine(_Pen, X1, Y1, X...
Hi!
I am building a diagramming tool using Adobe Flex 3. I am about to implement connector lines and I have a question.
Imagine I have 2 squares at random positions on the canvas. I need to draw an arrowed connector line between them. I need it to tend to the target square's center but end on its border.
How do I find out the exact p...