Environment versions
Network:
Windows 2008 Server
If you can use a 24-bit BMP file format, I can get you an arbitrary scaling algorithm in a DLL.
Use as:
bmp24GetWidth(file)
bmp24GetHeight(file)
bmp24Scale(inFile, outFile, newWidth, newHeight)
Best regards,
Rick C. Hodgin
>I have downloaded GDI and the following sample program
>
>But the program just hangs - what am I going wrong?
>
>** How To: RESIZE with Thumbnail Technique
>**
>
>** Saves to a PNG file
>
>DO j:\gdi\System.App
>
>WITH _SCREEN.System.Drawing
>
>* Variables to store the new Image size
>LOCAL lnWidth, lnHeight
>STORE 60 TO lnWidth, lnHeight
>
>* Load the original Image
>LOCAL loSrcImage as xfcBitmap
>loSrcImage = .Bitmap.New(GETPICT())
>
>
>
>* Get the thumbnail with the desired size
>LOCAL loThumbnail as xfcImage
>loThumbnail = loSrcImage.GetThumbnailImage(198, 240)
>
>* Save the resized image as Png
>loResized.Save("c:\Resized1.png", .Imaging.ImageFormat.Png)
>
>ENDWITH
>RETURN
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only