Re: [Gambas-user] Grab command

2012-04-23 Thread Benoît Minisini
Le 19/04/2012 19:01, trat50 a écrit : > > I would like some help the syntax of the Grab command. > I want to save a DrawingArea as a png or jpg file. > Would someone please post a short example. Thank you. The Grab() method is reliable only when grabing the entire desktop. If you grab a control,

Re: [Gambas-user] Grab command

2012-04-22 Thread trat50
How to prevent part of an image from getting blacked out if it extends off the edge of the screen: Here's how I synchronized Sky (a displayed PictureBox) with Sky1 (an undisplayed Picture): This allows DRAWING ON and SAVING - using the undisplayed Drawing, while seeing the results in the PictureBo

Re: [Gambas-user] Grab command

2012-04-22 Thread trat50
OK Tobi, IT WORKS! :jumping: I will write a few lines of code after breakfast for anyone else trying to do this. tobi-15 wrote: > > ___ > You don't need to draw on a PictureBox. Just draw on a Picture object and > then place that drawn > Picture in t

Re: [Gambas-user] Grab command

2012-04-22 Thread tobi
On Sat, 21 Apr 2012, trat50 wrote: > > But Tobi, I have been drawing just fine on a DrawingArea. > The DrawingArea named "Sky" is the picture posted above... > > I switched from a PictureBox to a DrawingArea because I couldn't draw on a > PictureBox. > Now I am back to the original problem... h

Re: [Gambas-user] Grab command

2012-04-21 Thread trat50
But Tobi, I have been drawing just fine on a DrawingArea. The DrawingArea named "Sky" is the picture posted above... I switched from a PictureBox to a DrawingArea because I couldn't draw on a PictureBox. Now I am back to the original problem... how to draw on a PictureBox. When I attempt to dr

Re: [Gambas-user] Grab command

2012-04-21 Thread tobi
On Fri, 20 Apr 2012, trat50 wrote: > > Thanks Tobi, Yes you are correct - this is on Gambas2. > I'll have to try that on a PictureBox. Initially I had everything for this > app on a PictureBox, but I didn't know how to draw on those. I'll see what > I can find in the texts, or maybe someone wil

Re: [Gambas-user] Grab command

2012-04-20 Thread trat50
Thanks Tobi, Yes you are correct - this is on Gambas2. I'll have to try that on a PictureBox. Initially I had everything for this app on a PictureBox, but I didn't know how to draw on those. I'll see what I can find in the texts, or maybe someone will chime in. tobi-15 wrote: > > On Fri, 2

Re: [Gambas-user] Grab command

2012-04-20 Thread tobi
On Fri, 20 Apr 2012, trat50 wrote: > > Hi Tobi, I just tried that - but it still blacks out anything not visible on > the computer monitor. > > > tobi-15 wrote: > > > > If you are talking about GB2, you can do: > > > > DrawingArea.Grab().Save(Path, [Quality]) > > > > However, in GB3, the Grab

Re: [Gambas-user] Grab command

2012-04-20 Thread trat50
Hi Tobi, I just tried that - but it still blacks out anything not visible on the computer monitor. tobi-15 wrote: > > On Thu, 19 Apr 2012, trat50 wrote: >> >> I would like some help the syntax of the Grab command. >> I want to save a DrawingArea as a png or jpg file. >> Would someone please po

Re: [Gambas-user] Grab command

2012-04-20 Thread tobi
On Thu, 19 Apr 2012, trat50 wrote: > > I would like some help the syntax of the Grab command. > I want to save a DrawingArea as a png or jpg file. > Would someone please post a short example. Thank you. > -- > View this message in context: > http://old.nabble.com/Grab-command-tp33715676p3371567

Re: [Gambas-user] Grab command

2012-04-19 Thread trat50
I found this older post that deals with the same problem... ...this sounds like it would work - but how does one do this? Is this just a matter of copying the DrawingArea to a PictureBox? (Björn Röder - are you still here?) Björn Röder wrote: > > Hello everyone! > > I found the solution for

Re: [Gambas-user] Grab command

2012-04-19 Thread trat50
Here is what I tried: PUBLIC SUB ToggleButton1_Click() 'The SAVE CALENDAR button DIM HolyCal AS NEW Picture Sky.Grab().Image.Save("HolyCal.jpg") The DrawingArea named "Sky" is saved... ...but the bottom of the picture (that is too tall for the monitor) is blacked out. http://old.nabble.com/fil

[Gambas-user] Grab command

2012-04-19 Thread trat50
I would like some help the syntax of the Grab command. I want to save a DrawingArea as a png or jpg file. Would someone please post a short example. Thank you. -- View this message in context: http://old.nabble.com/Grab-command-tp33715676p33715676.html Sent from the gambas-user mailing list arc