[Gambas-user] Grabing an image from a drawingarea ?

serge bouc serge.bouc at ...402...
Wed Sep 27 01:53:09 CEST 2006


Hello everybody,

I am trying to use gambas to create a drawing software for some
mathematical objects. My problem is the following : I can create
images in large drawingareas (I mean larger than the screen),
and view them in a scrollview. This works fine.
The problem is now to save these images to disk : for this, I have
to create an *image* in Gambas, but all I can do is "grab" a *picture*
from the drawing area, and then convert it to an image. And when
I do this, the image is clipped to the part of the drawingarea which
is actually drawn on the screen, so I don't recover the whole image
present on the drawingarea.
And this seems to be a normal behaviour, since if I understand the
documentation correctly, a "picture" in Gambas is drawn on the screen,
whereas an "image" is in memory.
So is there a way to recover the image directly from the memory of
a drawingarea, without drawing it to the screen, to avoid clipping ?

Thanks for any suggestion.
Serge.




More information about the User mailing list