|
Hi, i'm trying to make a GTK application in python where I can just draw a loaded image onto the screen where I click on it. The way I am trying to do this is by loading the image into a pixbuf file, and then drawing that pixbuf onto a drawing area.
the...
Started by Michael on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Found out I just need to get the function to call another expose event with widget.queue_draw draw(gtk.gdk.DrawingArea): def __init__(self): self.connect('expose-event', self._do_expose_source_pixbuf(self.pixbuf, 0, 0) cr.paint()
This will....
|
|
How can I create a drawing on a form and then save the drawing as an image file?
Started by Vikram on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
And add Image.Save().
Image.Save?
http://msdn.microsoft.com/en-us/library/system.drawing.image.save.aspx
You can extend the code in this sample code .
|
|
Are there LaTeX packages for (more or less) easily drawing Gantt diagrams?
Thanks.
Started by Gabi on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Main PSTricks site: http://tug.org/PSTricks/main.cgi
Example.
Gantt chart drawing capabilities.
|
Ask your Facebook Friends
|
Answer Snippets (Read the full thread at stackoverflow):
Try compositing a Windows Form User Control in your WPF project and encapsulate GDI+ drawing to do is to create Winform draw there and host it into WPF
This is generally a bad idea.
|
|
I have a drawing application like http://www.flashperfection.com/tutorials/Mouse-Drawing-in-AS3-96618.html where the user can select a brush size to draw. I need a way to determine that all the surface has been drawn. Any code or ideas on how to accomplish...
Started by abinop on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
To make a BitmapData copy of your vector(drawing API generated) canvas using the draw() method every now would need a slightly different approach:
You would have a bitmapData made by drawing 2 bitmaps.
|
|
Anyone knows of an open source DWG (autocad drawing) library in C#?
Started by Mac on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Creating an open source cross-platform .dwg library is at the top of my list for ... .
I can't seem to find the link ATM, but it was a few years ago .
Hi Mac,
There was at one time an effort to port Art Haas's .dwg parser (from the pythoncad project) to c# .
|
|
I am looking for some Drawing class (Package) that will enable me in a easy way to draw images like the following.
I have no Experience with Drawing so I will be glad to hear suggestions.
My pic link
Started by Night Walker on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
A few simple starter links
GDI+ is definitely the way to go draw with the lib....
To draw lines, polygons, rectangles etc., don't you?
Can you explain what abstraction you would want complicated drawing and animation in XAML alone.
|
|
I think you can do GDI+ drawing in just about any window in a .net windows forms project, but what do you recommend as the best built-in control for containing custom drawing? I'm going to be drawing my own x-y plots, text and images. I could use a Panel...
Started by P a u l on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Do your GDI+ drawing.
For simple non-scrolling charting I would derive from Control.
If you're just drawing the control and not hosting children, then derive from Control - VS on top.
|
|
I am drawing a graph on a control, but 0,0 is at the top-left hand corner of the control. Is there a way to flip the coordinates so that 0,0 is at the lower left corner of the control?
Started by Nippysaurus on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
In short no, however if i am drawing on controls a lot i have a few functions e.Graphics.ScaleTransform(1.0F, -1.0F);....
Not that I know of but if you use (x,Control.Height-y) you get the same effect .
Coordinates: Just draw to Height-y .
|
|
I have a view that has a background image and a CGPath that gets changed as the user touches the screen. Drawing the image with CGContextDrawImage() and then drawing the path on top is not fast enough and it hinders the touch event performance. What I...
Started by Alexey on
, 5 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Try putting your drawing code on a timer....
Of such views in layers, all with lots of fancy CG stuff (drawing and filling paths, clipping images: is effectively synchronous, so expensive drawing operations can kill a loop's performance.
|