Richard Welch
2016-11-08 11:52:35 UTC
I need a simple way to copy the current image in a visible DrawingArea
to a hidden PictureBox.
The project was written in Gambas2, where a simple Grab method did the
trick, but in G3 this does something different so the converted code
does not function fully.
FMain.pbxPicture.W = FMain.drwRep.W
FMain.pbxPicture.H = FMain.drwRep.H
FMain.pbxPicture.Background = FMain.drwRep.Background
FMain.pbxPicture.Picture = FMain.drwRep.Grab()
With what do I replace the Grab method?
(The DrawingArea is painted in many different pieces of code, depending
on context, so I want to make the change which will have the smallest
impact possible on the source code)
There is a gambas-user thread started around 19 April 2012.
Is this fully relevant?
Is this the /simplest/ answer?
It would need some very tedious testing in my context.....
to a hidden PictureBox.
The project was written in Gambas2, where a simple Grab method did the
trick, but in G3 this does something different so the converted code
does not function fully.
FMain.pbxPicture.W = FMain.drwRep.W
FMain.pbxPicture.H = FMain.drwRep.H
FMain.pbxPicture.Background = FMain.drwRep.Background
FMain.pbxPicture.Picture = FMain.drwRep.Grab()
With what do I replace the Grab method?
(The DrawingArea is painted in many different pieces of code, depending
on context, so I want to make the change which will have the smallest
impact possible on the source code)
There is a gambas-user thread started around 19 April 2012.
Is this fully relevant?
Is this the /simplest/ answer?
It would need some very tedious testing in my context.....