SaveArray method (ILEADRasterIO)
ILEADRasterVariant * SaveArray (ILEADRaster *pRaster, RasteFileConstants Format, short iBitsPerPixel, QFactorConstants Quality); | |
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.
To see the correct data types, refer to the code example for your development system.
To load an image from a file in memory, refer to the LoadArray method.
Support for 12 and 16-bit grayscale images is available only in the Document/Medical toolkits. For a list of available products, refer to Summary of LEADTOOLS Products.
Note: You cannot save a multipage file using the SaveArray method, but if you get a multipage file into memory in some other way, you can use the LoadArray method to load a specific page from the file.
You can calculate the size using the following:
Size = UBound(variant) – LBound(variant) + 1
For information on saving bitmaps that have been window leveled, refer to Saving Window-Leveled Bitmaps.
See Also
Elements |
LoadArray method, LoadMemory method, Save method, SaveTileHeight property, SaveTileWidth property |
Topics |
|
|