Description
This method queries the Registry entries of McStream format indicated by format, in the access mode indicated by Mode, and fills the descriptions VARIANT with a safe-array of BSTR's with compression names, and a corresponding safe array stored in the VARIANT ids with the mccsCompression numbers in the same order as descriptions. The VARIANT image argument is either the image to query, an image type, or an image QuickType. This is to ensure that the compression schemes available support the data type of the image you wish to save.
-
Return Type
-
A Long value.
LONG indicating the number of items in the descriptions and ids array
-
Syntax
-
object.GetCompressionTypes (Format, mode, Image, descriptions, ids)
The GetCompressionTypes Method syntax has these parts: |
| object | An expression evaluating to an object of type McStream. | | Format | Required. A String value. | | mode | Required. A mcfmFileMode enumeration, as described in settings. | | Image | Required. A Variant value. | | descriptions | Required. A Variant value. | | ids | Required. A Variant value. | Settings The settings for mode are:
 | mcSTREAM_READ | 1 |
open the file to read it into the image
|
 | mcSTREAM_WRITE | 2 |
open the file to write it to a new or existing image file
|
 | mcSTREAM_READ_WRITE | 3 |
open the file for both access (may not work for all formats)
|
Remarks
This is primarily used by a File Options dialog to display a list of possible compression types the selected format supports.
|