Available in the LEADTOOLS Imaging toolkit. |
LoadResize method (Main Control)
Visual Basic
example
Visual
C++ 4.0 example
Syntax short LoadResize (BSTR pszName, float fWidth, float fHeight, short iFlags, short iBitsPerPixel);
Overview: Refer to Loading a Bitmap from a File.
Remarks
Loads an image file into the LEAD control, resizing the bitmap as it loads, to the desired width, height, and bits per pixel. The file can be in any supported image file format and bits per pixel, whether compressed or uncompressed.
This method resizes a file as it loads, to the desired width, height, and bits per pixel. Note that the original file is not completely loaded into memory. This method is ideal for sampling large images (i.e. generating a thumbnail) without the memory overhead of loading the large file itself.
See Also
Elements: Load method
Topics: Raster Images: Loading Files