CImage:delete


The delete method deletes an instance of a class. Call delete when you are finished using the instance of this class. Mira automatically deletes all class objects when the script finishes but, it usually is good practice to delete objects when you are finished with them, at least so that you can re use the name.

Syntax

CImage:delete()

 

Example

I = CImage:new()

-- create a new CImage object.

  --

-- do something with the image.

I:delete()

-- delete the object and its associated memory.

Alternatively, if using the array constructor, newarray, then the following would apply:

I = CImage:newarray(t)

-- create a new CImage object from a lua table t.

  --

-- do something with the image.

I:delete()

-- delete the object and its associated memory.

Related Topics

Close

new

CImage class