new_image
The new_image function is a non-class version of the CImage:new method which creates and returns a new CImage object. After creating a new image, you must use the Create, Open, or Copy method from the CImage class or attach it from the CImageView class. Note that the object can also be created using the CImage:new method.
CImage = new_image() Creates a new CImage. CImage = new_image( CImage_old ) This is a copy constructor. It creates a new CImage initialized to the properties of CImage_old. |
The following script creates a CImage object and loads an image into it. Then it creates a new CImage that is a duplicate of the first one. This makes 2 images loaded into memory:
|
-- create a new CImage object |
|
-- load an image from a file |
|
-- create a new CImage with a copy of A |
|
-- print the name of image A |
|
-- print the name of image B. Same as A |
|
-- delete when done |
|
-- delete when done |
CImage class, Copy, Ceate, new, delete, Math Operators
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.