SaveMemory2 method (ILEADRasterIO)
Short SaveMemory2 (LPDISPATCH pRaster, RasterFileConstants Format, short iBitsPerPixel, QFactorConstants Quality, short iModify); | |
Overview |
Refer to Using Memory-Resident Image Files. |
Remarks
Saves a bitmap to a file in memory. The output can be in any of the supported compressed or uncompressed file formats, and includes multi-page files.
To use this method, do the following:
1. |
Assign an OLE_HANDLE to the SaveMemory2Handle property to reference the file in memory. |
2. |
Call this method to save the bitmap in the specified memory handle. |
To see the correct data types, refer to the code example for your development system.
To get information about a file stored in memory, refer to the GetMemoryInfo method. To load an image from a file in memory, refer to the LoadMemory method.
Support for 12 and 16-bit grayscale images is available only in the Document/Medical toolkits.
This method does not support signed data images, but DICOM images are supported as signed data. It returns the error code ERROR_SIGNED_DATA_NOT_SUPPORTED if a signed data image, other than a DICOM image, is passed to this method.
The following file formats support append operations (iModify = SAVE_APPEND):
TIFF (most TIFF formats, including JTIF but excluding EXIF)
PCX
FlashPix
AWD
Winfax
GIF
The following file formats support replace operations (iModify = SAVE_REPLACE):
TIFF (most TIFF formats, including JTIF but excluding EXIF)
PCX
The following file formats support insert operations (iModify = SAVE_INSERT):
TIFF (most TIFF formats, including JTIF but excluding EXIF)
PCX
See Also
Elements: |
SaveMemory2Handle property, SaveMemory2Size property, Save method, SaveMemory method, SaveWithStamp method , SaveTileHeight property, SaveTileWidth property |
Topics: |