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:

PartDescription
objectAn expression evaluating to an object of type McStream.
FormatRequired. A String value.
modeRequired. A mcfmFileMode enumeration, as described in settings.
ImageRequired. A Variant value.
descriptionsRequired. A Variant value.
idsRequired. A Variant value.

Settings

The settings for mode are:

ConstantValueDescription
 mcSTREAM_READ1

open the file to read it into the image

 mcSTREAM_WRITE2

open the file to write it to a new or existing image file

 mcSTREAM_READ_WRITE3

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.