Click or drag to resize

IMcStream Interface

An interface implemented by McStreamFITS.

Namespace:  MediaCy.IQL.IO
Assembly:  MediaCy.IQL.IO (in MediaCy.IQL.IO.dll) Version: 10.0.6912.0
Syntax
VB
Public Interface IMcStream

The IMcStream type exposes the following members.

Properties
  NameDescription
Public propertyArtist
This is a shortcut to the Artist TIFF Tag, but it can also be used by other formats to retrieve information about the ownner of an image file. If there is no Author, an empty BSTR will be returned.
Public propertyAttributes
Gets a pointer to the McStreamAttributes Collection
Public propertyBestFitMode
This property determines whether to apply a best-fit display range to the image after it is opened.
Public propertyBitDepth
Returns the number of bits each channel occupies.
Public propertyChannels
Gets or Sets the Channels property in the image file. Usually 1 (Monochrome) or 3 (RGB,HSI, etc).
Public propertyColorSpace
Returns a String that indicates which colorspace the image data is in HSI, HSV, Yuv, YCC, RGB, Monochrome, etc....
Public propertyComments
This is a shortcut to the Comments TIFF Tag, but it can also be used by other formats to retrieve extended comments out of an image file. If there are no Comments, an empty String will be returned.
Public propertyCompression
Gets/Sets the compression used for this image file.
Public propertyCurrentFrame
The Current Frame that will be read.
Public propertyDataTypeString
Returns a textual string describing the Number of Bytes per pixel the image is in. Typical return values are "Unsigned Char", "Float", "Unsigned Short", etc....
Public propertyDateTime
If the file format supports an internal Date and Time value (such as TIFF), then this information is used. If there is no support, the file sytems date/time information is returned.
Public propertyDestination
Gets or Sets the VARIANT with the pathname or object that is the destination for writing an image, if this is a writing stream. If it is a reading stream, the destination is usually an IMcImage object that will contain the data and image information
Public propertyEndFrame
The last frame to read.
Public propertyCode exampleFileName
On Get, fills the String parameter with the name of the file that is being used as the Source (reading) or Destination (writing) If the Source/Destination is actually an Istream/IStorage, then the name of that particular IStream/IStorage is returned. If there is no FileName set, an empty String is returned. This property is generated from the FullPathName. The FileName differs in that it is only the name of the image and the extension, but does not include any qualifying directory names.
Public propertyFlags
Gets/Sets any defined flags for the McStream.
Public propertyFormat
Gets or Sets the String Format with the file format descriptor string that is used to create the Helper Subclass. If this property is Set, the Helper Subclass is created.
Public propertyFormatCharacteristics
Read-only property indicating the characteristics and capabilities of the selected file format.
Public propertyFrameRange
To Read non-contiguous frames out of a sequence, pass a SAFEARRAY filled with the 0-based frame numbers you wish to read to this property
Public propertyFullPathName
This property returns the fully qualified path of the file that is being used as the Source (reading) or Destination (writing) On Set, Sets the internal property to the String passed.
Public propertyHeight
On Get, Fills the long parameter with the height of the image read from the image file. On Set, sets the local property to the long value The Height is determined by the number of Pixels from OriginY to the bottom of the image. The Height must be less than or equal to the Height of the File data. If you wish to Subsample the image, see PreviewHeight.
Public propertyIsLossy
Read-only property reporting whether the selected file format/compression combination may be lossy (see Remarks).
Public propertyIsMemoryFile
If this file is being read from disk, the return is False. If it is a virtual image, usually created by a filter or other type, the return is True.
Public propertyIsMovie
Returns whether this image file is a sequence (or movie).
Public propertyIsOpen
Public propertyLineSize
Returns the total number of bytes that make up 1 line of the image. Usually computed by (Width - OriginX) * Channels * sizeof(datatype)
Public propertyCode exampleLoadMethod
McStream can load all frames of a sequence at once into memory (the default), or a single frame at a time via this method. It will be one of these enumerated values: mcLoadAllFrames mcLoadSingleFrame
Public propertyLoadStatus
A read-only property that returns an mcslsLoadStatus value indicating the status of the previously Read image file.
Public propertyMultipleResolution
Read-only property reporting whether the selected file includes multiple resolutions.
Public propertyOriginX
Gets or Sets the horizontal integer offset for the beginning of a subsectional valid area of the data. This defaults to 0 (left-most pixel). Setting this value allows only saving/loading a section of an image.
Public propertyOriginY
Retrieves the vertical integer offset for the beginning of a subsectional valid area of the data. This defaults to 0. Setting this value allows only saving/loading a section of an image.
Public propertyPreviewHeight
Read-only property that gives the Height of the previewed image, determined by the sub-sampled image height minus any fill.
Public propertyPreviewMode
Public propertyPreviewWidth
Read-only property that gives the Width of the previewed image, determined by the sub-sampled image width minus any fill.
Public propertyRangeMax
Read-Only property to access the Maximum clipping range that was identified in an image file.
Public propertyRangeMin
Read-Only property to access the Minimum clipping range that was identified in an image file.
Public propertyReadOnly
Returns a Boolean value that indicates whether the McStream is able to be Written to. Many factors can affect this status, such as support for a writable McStream Format, the current File's Permissions, Licensing, etc.... True means the file cannot be Written, False means the file may be Written.
Public propertyReadWriteMode
Gets/Sets the file access mode, for reading or for writing. Not all formats are supported for writing.
Public propertyResolution
This read/write property determines the image resolution that will be opened.
Public propertyResolutionSizes
Read-only property returning a list of resolution descriptions.
Public propertyShowProgressMeter
Gets or Sets a Boolean value that indicates whether the McStream library should update a Progress Bar during operations. Default is True, meaning to update the progress bar.
Public propertySizeOfDataType
Returns the number of bytes for each of the image file's pixels.
Public propertySoftware
Read-Only property used to access an indicator in some image files that identifies which software was used to create this image file.
Public propertySource
Gets or Sets the VARIANT with the pathname or object that is the source for writing an image, such as an McImage object, if this is a writing stream. If it is a reading stream, the source is usually a Filename that will contain the data and image information
Public propertyStartFrame
The first frame to read.
Public propertyCode exampleStorageSize
Property to determine the size, in bytes, of the complete file. Notice that this may be larger or smaller than the image size due to Compression and/or the File Format's structure.
Public propertySubClass
Returns the file format specific class
Public propertyTagValue
Public propertyTitle
Returns the Title (if any) in the Image File as a BSTR.
Public propertyTotalFrames
Total frames read or to be written.
Public propertyWarningLevel
Gets/Sets the level of Feedback the Stream library will provide.
Public propertyWidth
Gets or Sets the Width property. Width indicates the number of Pixel columns from the left (originX) of the image.
Top
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