I need to draw some pictures for my LaTeX documents, and I've found that hand-made PostScript seems to be a good fit (I want to do stuff programatically, need math functions, etc.). I've also tried TikZ but that just seemed overcomplicated and hard to use.
However, using plain standard PostScript is a bit painful since there aren't real...
Is there a good .Net component for drag/drop/resize drawing in 2D with connections (like Visio) ?
...
I want to draw one picture over another and dump it to HttpResponse. My code looks like this:
//file name points to a gif image
System.Drawing.Image originalImage = System.Drawing.Image.FromFile(filename);
System.Drawing.Image smallImage = System.Drawing.Image.FromFile(smallFilename);
using(Bitmap tempImage = new Bitmap(originalImage))...
Is it necessary to manually manage the lifetime of System.Drawing objects?
Currently I am employing 'using' statements to minimise the lifespan of Brushes and other Drawing objects e.g.
using ( Brush br = new SolidBrush( color ) )
{
// Do something with br
}
Is this necessary or is it safe to let the garbage collector work its ma...
I want to draw the same background on multiple windows for example the background could be concentric circles, a multi colored grid or any mathematical shapes combined. These backgrounds are customizable from an external routine which is in a different module. When i instruct the external routine to change the background all the windows ...
I'm trying to get a web page to display a .gif/.jpg/.png selected by the user through a File Open dialog.
Trouble is, as far as I can see, the is specifically designed to upload the selected file to the web server, whereas I only want to get the file's location so I can feed it into the Image.FromFile Method of the System.Drawing names...
Is there a way to move a path on screen by (x,y) pixels using directly a CGPathRef instead of walking through its points and lines again in drawRect method? I want to be reusing my old CGPathRef when I want to move it on screen instead of recreating it with new pixels.
...
Background:
I want to be able to take a 2d matrix (an image really), and a set of points defining a polygon, and draw that polygon into the matrix.
Before I run off and reinvent the wheel, I thought I'd ask if anyone knew of any existing libraries or code in Octave that does this. So far, my searches through the Octave packages and ...
What is the most direct way to draw a pie chart using ImageMagick in an existing image. For example, how would I draw a single slice given the following inputs?
A center point (x,y)
Radius
Percent
...
Is it possible to ownerdraw the entire column header section of a listview? (including the region to the right of the column headers)? ListView is in Details View.
An answer here indicates that the remaining space can be drawn along with the last column header: http://www.devnewsgroups.net/group/microsoft.public.dotnet.framework.windows...
Hi all,
Does anyone know how to draw a line between two items in a grid? I would normally use a canvas but it does not provide the layout I want.
The grid is the ItemsPanel of an ItemControl object.
Thanks,
Adam
...
I have a custom UIView which is drawn using its -[drawRect:] method.
The problem is that the anti-aliasing acts very weird as black lines horizontal or vertical lines are drawn very blurry.
If I disable anti-aliasing with CGContextSetAllowsAntialiasing, everything is drawn as expected.
Anti-Aliasing:
No Anti-Aliasing (which looks li...
hello,
i'm trying to draw a line from the originate point of an image view to its destination point.
my problem is (i guess) how to set the superview as current drawing context (from the image view).
can someone help please.
this is the code i'm using in image view..
//UIGraphicsPopContext();
CGContextRef context = UIGraphicsGetCur...
Hello, I am trying to do custom drawing of an image(with alpha) and eventually going to apply different color tints to it. Right now I am just trying to draw it correctly. This might be simple problem but the result is the ALPHA on my image is black. Image is .png created from photoshop with correct alpha.
- (void) drawRect:(CGRect)area...
I'd like to create a WPF app that traces the location of the mouse cursor, updating the image in the MouseMove event handler. My original thought was to create a GeometryDrawing and then add paths to that but I'm struggling with how to wire this up in code (though the Xaml for GeometryDrawings seems straightforward). What's the easiest...
Hello,
I have problem setting the size of drawing panel. I want a drawing panel with the size 0f 600,600.However I found that, the size of the drawing panel is smaller than 600,600. It seems that the frame size is 600,600 which make the drawing panel smaller. How can I set the drawing panel size 600,600 ?
....
public class DrawingBoardW...
I've used this piece of code to put an image in a variable. What I wanna do is draw dots on it on various places and then save the result.
What I do is I open a dialog to select the file and to check if it worked, I put it in a picturebox. Using winforms offcourse. Using Visual Studio 2008 Professional.
EDIT:the openImg variable you se...
I would like advice on whether or not I should program the following from scratch myself or use a 3rd party component. If there is a 3rd party component that fits the bill without too much baggage I'd appreciate recommendations.
I would like to have a component that is a matrix of cells, like a grid control. I need no editing, no select...
In my project I want to display a small logo on the side of a custom control. Since I have no canvas I thought maybe a Visual Brush would be a good Idea to place the logo in the background.
<VisualBrush>
<VisualBrush.Visual>
<Rectangle Width="200" Height="200" Fill="Red" />
</VisualBrush.Visual>
</VisualB...
It seems that a won't be visible unless a height and width is specified. Is this true?
This seems rather tedious. Couldn't the bounds of the line imply the correct width and height?
<Canvas Height="200" Width="200" HorizontalAlignment="Left" Background="Beige">
<!-- This is visible -->
<Line X1="20" Y1="40" X2="7...