Hello,
I managed to solve my own problem with about 3 hours of tinkering and reading
MSDN. Although I still haven't figured out how exactly WM_Paint messages are
being generated. If I comment out the Update and the InvalidateRect method
calls, the graph line still gets drawn; which means calling Sh
An additional note:
why is there a problem with portability? I suggest you try the (horrible)
ImageMagick library if you want something truely portable. I say ImageMagick
is horrible because it crashes a *lot* if you use threads, and the perl
interface is badly documented. But you may want to give
Hi,
All I can say is that DC/Paint does work - and quite well. Although it does
take a while to get your head around things. In the end I did go for using
GD as the graphics engine (along with DIBitmap) since there was a
performance issue using native windows drawing.
Below is an example fro
The Graphic object has a Paint event in which all your painting should be
done. If you find that the graphic is going blank on resize or something,
then you should call the Paint() event there too.
see http://jeb.ca/perl/win32-gui-docs/index.pl/win32-gui-graphic for a
simple example. You should VA
Hi,
I am trying to draw an interactive graph in a window, and I don't want to use
GD, ImageMagick, Freeimage or any other libraries because of portability
issues.
However, I can't figure out how to correctly use Win32::GUI::Graphic,
Win32::GUI::DC, WM_Paint and InvalidateRect. I've tried reading th
5 matches
Mail list logo