GetMemoryInfo method (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

int GetMemoryInfo (int hMem, int iPage, int iSize);

Delphi Syntax

GetMemoryInfo (hMem:L_HANDLE; iPage:Integer; iSize:Longint): Integer;

Overview

Refer to Using Memory-Resident Image Files.

Remarks

Gets information about a file that is stored in memory.

This method updates the following properties:

InfoBits property
InfoCompress property

InfoFormat property

InfoHeight property

InfoPage property

InfoSizeDisk property

InfoSizeMem property

InfoWidth property

To save an image to a file in memory, refer to the SaveMemory method. To load an image from a file in memory, refer to the LoadMemory method.

Note:

You cannot save a multipage file using the SaveMemory method, but if you get a multipage file into memory in some other way, you can specify a page when using the GetMemoryInfo method or the LoadMemory method.

See Also

Elements:

GetFileInfo method

Topics:

Raster Images: Loading Files

 

Raster Images: Getting and Setting File Information