GetMemoryInfo method (Main Control)

Visual Basic example
Visual C++ 4.0 example

Visual J++ example

Syntax short GetMemoryInfo (OLE_HANDLE hMem, long lPage, long iSize, long uFlags);

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

InfoTotalPages 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