LoadResize method (Main Control)
Builder Syntax |
int __fastcall LoadResize (System::AnsiString szFileName, int nWidth, int nHeight, int iFlags, int iBitsPerPixel); |
Delphi Syntax |
Function LoadResize (szFileName: string; nWidth: Integer; nHeight: Integer; iFlags: Integer; iBitsPerPixel: Integer): Integer; |
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: |
|
Topics: |