Click or drag to resize

IMcStream Methods

The IMcStream type exposes the following members.

Methods
  NameDescription
Public methodCode exampleAddTag
Creates a new tag for the image file.
Public methodCode exampleClone
Copies properties from one McStream to another
Public methodClose
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).
Public methodCode exampleDuplicate
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.
Public methodGetAdditionalOptions
BSTR *Description, mcsovtValueType* ValueType, mcsguiGuiRepresentation* GuiRep, VARIANT* ValueMin, VARIANT* ValueMax, VARIANT* DefaultValue, long* PropertyID)
Public methodCode exampleGetAllFileFormats
Method used to query for installed File Formats in a certain Access Mode.
Public methodGetCompatibleFileFormats
Public methodGetCompressionName
Method that returns the descriptive name of the specified compression setting.
Public methodCode exampleGetCompressionTypes
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.
Public methodCode exampleGetFormatDescriptions
Method used to retrive textual descriptions for a list of file extensions
Public methodCode exampleGetFormatExtensions
Method used to retrive textual descriptions for a list of file extensions
Public methodGetListOfFrames
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.
Public methodHasDynamicRange
Read-Only property used to indicate whether dynamic ranges are present in the image file.
Public methodCode exampleOpen
Creates the Subclass (Helper class) COM object and initializes data. Calls the Subclass's Open for further initialization
Public methodCode exampleRead
Reads the File or Image object.
Public methodCode exampleReadFrames
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.
Public methodCode exampleRemoveTag
Description Deletes the tag referenced by key from the image file
Public methodCode exampleReset
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.
Public methodCode exampleSupportsImageType
Given an mcImageType or an mcImageQuicktype, will inform the client whether the underlying SubClass will support the Image.
Public methodCode exampleWrite
Writes an image to a destination.
Top
See Also