IMG_decompress_bitmap(String, int)
This method decompresses an image from the local disk. This standard method can be used by applications for which disk read permissions have been granted. As with all decompression methods, it automatically detects the file format.
You can find the samples for using this methodin the \Samples\com\snowbound\samples
directory. This method is used in the following samples:
- The BatchConvert Sample
- The SingleConversion Sample
- The SilentPrint Sample
- The Swing Sample
- The Thumbnails Sample
- The ColorDetection Sample
- The SavePagetoMemory Sample
- The VectorPDF Sample
Syntax
int IMG_decompress_bitmap(String st, int page);
Example
IMG_decompress_bitmap
example:
FileDialog fd = new FileDialog(this,"Open " + "Bitmap",FileDialog.LOAD);
fd.show();
FileName = fd.getDirectory() + fd.getFile(); if (FileName != null)
{
tSimage = new Snow.`Snowbnd`(); tSimage.IMG_decompress_bitmap(FileName,0);}
OpenFileDialog fd = new OpenFileDialog(); DialogResult dr = fd.showDialog;
if (dr == System.Windows.Forms.DialogResult.OK)
{
Simage = new Snow.`Snowbnd`(); tSimage.IMG_decompress_bitmap(fd.FileName,0);
}
Remark
IMG_decompress_bitmap(String, int)
method variables:
Variable | Description |
---|---|
st |
Path and filename of the image to decompress |
page |
Page number for the multi-page image file |
Returns
Returns the status of the decompressed image. A value of 0 indicates success. Any value less than zero is a RasterMaster error code. See RasterMaster Error Codes for a list of error codes.
Have questions, corrections, or concerns about this topic? Please let us know!