![]() |
Image








Public Data Item |
Declared in: NiShape.h |
Declaration
CNiImage Image;
Description
Specifies the shape image.
The image is only displayed if the CNiShape.Type is CNiShape::Image.
Note that you must initialize a CNiImage object from an existing object. For example:
CNiImage image = shape.Image; image.Tile = false; image.Visible = true;
If you do not initialize a CNiImage object from an existing object, a CNiObjectNotInUsableState exception will be thrown when you attempt to manipulate the instance of the CNiImage. For example:
CNiImage image;// This will throw a CNiObjectNotInUsableState exception because // the CNiImage object was not initialized from an existing object. image.Tile = false; image.Visible = true;