Class PStamp
See Also: Class AnimProperty.
class PStamp: public AnimProperty
Description:
This class is available in release 2.0 and later only.
This is used internally by the Material / Map Browser which supports the display of small and large icon images for material and texture maps. This class is the postage stamp image object.
The width in bytes of the image pixel array is given by the following macro, where w is pixel width.
#define ByteWidth(w) (((w*3+3)/4)*4)
Methods:
Prototype:
virtual int Width()=0;
Remarks:
Returns the width of the image in pixels.
Prototype:
virtual int Height()=0;
Remarks:
Returns the height of the image in pixels.
Prototype:
virtual void SetImage(UBYTE *img)=0;
Remarks:
Sets the image for the postage stamp.
Parameters:
UBYTE *img
This is an array of RGB triplets.
Prototype:
virtual void GetImage(UBYTE *img)=0;
Remarks:
Retrieves the image bytes of the postage stamp.
Parameters:
UBYTE *img
This is an array of RGB triplets.
Prototype:
virtual void DeleteThis()=0;
Remarks:
This method is called to delete this instance of the class.
Prototype:
virtual IOResult Load(ILoad *iload)=0;
Remarks:
This method is used to load the postage stamp image.
Prototype:
virtual IOResult Save(ISave *isave)=0;
Remarks:
This method is used to save the postage stamp image.