IMcStream Methods |
![]() |
The IMcStream type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | AddTag | Creates a new tag for the image file. |
![]() ![]() | Clone | Copies properties from one McStream to another |
![]() | Close | Closes the stream and calls Close() on the Subclass. This should always be called
after completing a read or write operation (Open, Read or Write, then Close). |
![]() ![]() | Duplicate | This method copies the file indicated by either Source or FileName to the Destination.
The file is copied byte by byte, bypassing the normal McStream functionality of
reading the image. This method is analagous to an Operating System copy/paste of a File. |
![]() | GetAdditionalOptions | BSTR *Description, mcsovtValueType* ValueType,
mcsguiGuiRepresentation* GuiRep, VARIANT* ValueMin, VARIANT* ValueMax,
VARIANT* DefaultValue, long* PropertyID) |
![]() ![]() | GetAllFileFormats | Method used to query for installed File Formats in a certain Access Mode. |
![]() | GetCompatibleFileFormats | |
![]() | GetCompressionName | Method that returns the descriptive name of the specified compression setting. |
![]() ![]() | GetCompressionTypes | 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. |
![]() ![]() | GetFormatDescriptions | Method used to retrive textual descriptions for a list of file extensions |
![]() ![]() | GetFormatExtensions | Method used to retrive textual descriptions for a list of file extensions |
![]() | GetListOfFrames | When a call to Open returns the error MCSTREAM_MULTIPLE_RESOLUTION,
it means that this image file contains multiple sub-images, but at least one
of the images is of a different imaging class. Usually, this is determined by
differing resolutions of the image. Therefore, this image file must be opened
as independent images rather than as a sequence. This method allows the UI to
query for a textual description (usually resolution) of each sub-image. The list is
then presented to the User for selection. The UI will then SetCurrentFrame to
the offset selected, and open that image as single framed image. |
![]() | HasDynamicRange | Read-Only property used to indicate whether dynamic ranges are present in the image
file. |
![]() ![]() | Open | Creates the Subclass (Helper class) COM object
and initializes data. Calls the Subclass's Open
for further initialization |
![]() ![]() | Read | Reads the File or Image object. |
![]() ![]() | ReadFrames | This method allows the client to read an array of frames from a sequence, and place them
in particular frames of an existing image. For example, the client may wish to read frames
6,10, and 12 of a sequence file, and place them in Frame locations 3,9,and 11 of the image,
respectively. The two SAFEARRAY's are matched descriptor to descriptor, for example,
the first array member of the stream_range array will be placed into the first
array member of the image_range. |
![]() ![]() | RemoveTag | Description
Deletes the tag referenced by key from the image file |
![]() ![]() | Reset | This method provides some of the same functionality as Close(), but it does
not destroy the Subclass helper object (file format specific). It resets
any internal file names and flushes data buffers. |
![]() ![]() | SupportsImageType | Given an mcImageType or an mcImageQuicktype, will inform the client
whether the underlying SubClass will support the Image. |
![]() ![]() | Write | Writes an image to a destination. |