[Gambas-user] Picture resizing?
Daniel Campos
dcamposf at ...626...
Sat Aug 12 21:08:07 CEST 2006
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
> --
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20060812/c3cc7584/attachment.html>
More information about the User
mailing list