Click to See Complete Forum and Search --> : resize a picture


avatar
January 5th, 2000, 12:26 PM
can anybody tell me how to make an image resize to a picture box rather than the other way round, as is normally used. It's a bitmap by the way.

Waseem Sadiq
January 5th, 2000, 03:31 PM
The easy way to do this is to use a image instead of a picturebox and set the stretch property to true. If you want to use a picturebox, you'll have to dig into the windows API's. Hope it helped.

Richard Barnes
January 5th, 2000, 05:33 PM
The fastest way to do this would be to have a second picture box hidden and use the paintpicture method (Check the help file) you can specify the size of the destiantion window using this method. Warning taking a large file and shrinking it down small can give you some weird effects of the image is to small.

Hope this helps

Richard Barnes
Lead Design Scientist
Coynet International/Public Access Technologies