Click or drag to resize

IMcStreamRead Method

Reads the File or Image object.

Namespace:  MediaCy.IQL.IO
Assembly:  MediaCy.IQL.IO (in MediaCy.IQL.IO.dll) Version: 10.0.6912.0
Syntax
VB
Function Read ( 
	Optional Flags As mcImageCreateFlags = mcImageCreateFlags.mcicfDefault
) As McImage

Parameters

Flags (Optional)
Type: MediaCy.IQL.EnginemcImageCreateFlags

Return Value

Type: McImage
The Resulting McImage
Remarks
This function reads the source file or IStream/IStorage and stores the information in the Destination local property. Destination can be an McImage or an IStream/IStorage, or NULL, in which case an Image is created, added to the collection (based on the flags), and then returned in Destination. The mcImageCreateFlags are those passed to McImage.Add in order to determine which type of image (added to the collection, visible, etc...) we wish. The default for Flags is mcicfDefault, which adds the image to the collection and sends notifications to the Application to create an Imaging Workspace for the new image and then to display it. The image file is closed after this call completes. The Flags property will be updated by this operation. The image Modified property will be cleared, and the File property of the image updated.
Examples
VB
Images.File.Open "c:\myTiff.tif", mcSTREAM_READ
Images.File.Read
Images.File.Close
See Also