Description

Create a new McImage from an image file.

Return Type

A McImage object.  

The new McImage or Nothing if the user Cancels out of the open dialog.

Syntax

object.Open ([FileName], [ImageCreationFlags])

The Open Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McImages.
FileNameOptional. A Variant value.

The image file name to open. If this is an empty string, then an open-file dialog is presented to the user.

Flags : Flag to pass to Add. See mcImageCreateFlags for the list of supported flags.

ImageCreationFlagsOptional. A mcImageCreateFlags enumeration, as described in settings.

Settings

The settings for ImageCreationFlags are:

ConstantValueDescription
 mcicfDefault0
 mcicfContiguous1

If set, frames are allocated contiguously, and you cannot add to the FrameCount at a later time.

 mcicfNoInit2

Default is to initialize to 0 (black), this flag suppresses initialization.

 mcicfNoAddToCollection4

If set, the image is created, but not added to the collection (see Notes).

 mcicfNotVisible8

If set, the image is created, possibly added to collection (see above), but not made visible.

 mcipfNoImportProperties8388608

Suppress ImportProperties for functions creating an image from another.