[Gambas-user] Help needed ... trying to resize a picture object

M0E Lnx m0e.lnx at ...626...
Tue Jan 29 18:49:31 CET 2008


Thanks Rob... that worked.

On Jan 29, 2008 11:20 AM, Rob <sourceforge-raindog2 at ...94...> wrote:
> On Tuesday 29 January 2008 11:51, M0E Lnx wrote:
> > I know the image object supports the .stretch method, but I'm not
> > sure how to turn an image into a picture that the iconview can use
> > I dont want to store another copy of the resized icon on the
> > drive... I'd rather have gambas do it internally (in memmory) if
> > possible.
>
> The Image class has a Picture property that returns a Picture, and
> vice versa.  You don't need to write it to disk, just maybe make an
> extra variable.
>
> You might even be able to go
>
> myPicture = myPicture.Image.Stretch(x,y,TRUE).Picture
>
> to do it all in one line, but I haven't tried that.
>
> Rob
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>




More information about the User mailing list