CNiShape::Image

CNi

Class
CNiShape::
Image
Base ClassesData ItemsConstructorsDestructorsFunctionsGo to hierarchy chart    Prev page: FillVisibleNext page: LineColor    
Public Data Item Declared in:
NiShape.h

'Declaration' icon -- Shortcut to top of page. Declaration

CNiImage Image;

'Description' icon -- Shortcut to top of page. 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;

'See Also' icon -- Shortcut to top of page. See Also