LoadResize method (ILEADRasterIO)

Visual Basic example

Visual C++ 5.0 example

 

Syntax

short LoadResize(ILEADRaster *pRaster, BSTR pszName, float fWidth, float fHeight, LoadResizeConstants Flags, short iBitsPerPixel);

Overview

Refer to Loading a Bitmap from a File.

Remarks

Loads an image file into the LEAD Raster object, 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

CMYKRasterCount property, LoadFileCMYKArray method, SaveFileCMYKArray method, RasterIO property, EnablePaintCMYKArray property, CMYKRaster property, Load method

Topics

Raster Images: Loading Files

 

Handling CMYK Files as Separate Bitmaps