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: |
| object | An expression evaluating to an object of type McImages. | | FileName | Optional. 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.
| | ImageCreationFlags | Optional. A mcImageCreateFlags enumeration, as described in settings. | Settings The settings for ImageCreationFlags are:
 | mcicfDefault | 0 | |
 | mcicfContiguous | 1 |
If set, frames are allocated contiguously, and you cannot add to the FrameCount at a later time.
|
 | mcicfNoInit | 2 |
Default is to initialize to 0 (black), this flag suppresses initialization.
|
 | mcicfNoAddToCollection | 4 |
If set, the image is created, but not added to the collection (see Notes).
|
 | mcicfNotVisible | 8 |
If set, the image is created, possibly added to collection (see above), but not made visible.
|
 | mcipfNoImportProperties | 8388608 |
Suppress ImportProperties for functions creating an image from another.
|
|