[Gambas-user] Picture resizing?

Fabien Bodard sirfabien at ...626...
Sun Aug 13 16:25:10 CEST 2006


Le Samedi 12 Août 2006 21:08, Daniel Campos a écrit :
> If you're using a PictureBox, you can use the "Stretch" property to true,
> it will make the picture inside to fit with the dimensions of the box.
>
> Another way is to use the the Image class to process it:
>
> ....
> Dim hImg1 as Image
> Dim hImg2 as Image
>
> hImg1=Image.Load ("your path to the image")
>
> hImg2=hImg1.Stretch (newWidth, newHeight)
>
> PictureBox1.Picture=hImg2.Picture
> ....
>
> Daniel
>
> 2006/8/12, James Hatridge <James.Hatridge at ...17...>:
> > HI all...
> >
> > Ok new question! I have a picture box of about 300X400 to show my stamps.
> > For
> > most stamps its fine, but sometimes it shows only part of a larger stamp.
> > How
> > can I resize the picture (not the box) to fix inside the box?
> >
> > BTW thanks to everyone for their help, this is a great list.
> >
> > JIM
> > --


more shorty :
dim Img as image
PictureBox = img.load(myfile).stretch(newwidth,newheight).picture

otherway

Picturebox = Picture[myfile].image.strech(newwidth, newhgeight).picture


> > Jim Hatridge
> > Linux User #88484
> > ------------------------------------------------------
> >               WartHog Bulletin
> >           Info about new German Stamps
> >    http://www.fuzzybunnymilitia.org/~hatridge/bulletin/index.php
> >
> >             Viel Feind -- Viel Ehr'
> >       Anti-US Propaganda stamp collection
> >   http://www.fuzzybunnymilitia.org/~hatridge/collection/index.php
> >
> > -------------------------------------------------------------------------
> > Using Tomcat but need to do more? Need to support web services, security?
> > Get stuff done quickly with pre-integrated technology to make your job
> > easier
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache
> > Geronimo
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > _______________________________________________
> > 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