hi julius,
Maybe you could use the StretchBlt function which copies a bitmap
from a source rectangle into a destination rectangle, stretching or
compressing the bitmap to fit the dimensions of the destination rectangle,
if necessary. The system stretches or compresses the bitmap according to the
stretching mode currently set in the destination device context.You can
check the MSDN for more infomation.
naveen
Quote:
> Dear all, I'm trying to save an image to a file resized. Say, I have a
> 300x500 pixel jpg and I want to convert and save it to a 1024x768 bmp. I
> tried the following code but it will just give me a grey bmp file with
> nothing at all. How come? The SourceFile and DestinationFile values are
> tested with Dir() and ARE valid.
> Please help...
> Dim lngWidth, lngHeight
> lngWidth = Screen.Width
> lngHeight = Screen.Height
> Set Picture1.Picture = LoadPicture(SourceFile)
> Picture3.Width = lngWidth
> Picture3.Height = lngHeight
> Picture3.PaintPicture Picture1.Picture, 0, 0, lngWidth,
> lngHeight
> Picture4.Width = lngWidth
> Picture4.Height = lngHeight
> Picture4.Picture = Picture3.Image
> SavePicture Picture4.Picture, DestinationFile
> Thanks,
> Jules
> ***24 hours in a day...24 beers in a case...coincidence?***