Public Member Functions

PStamp Class Reference

Search for all occurrences

Detailed Description

See also:
Class 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)

#include <imtl.h>

Inheritance diagram for PStamp:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual int  Width ()=0
virtual int  Height ()=0
virtual void  SetImage (UBYTE *img)=0
virtual void  GetImage (UBYTE *img)=0
virtual void  DeleteThis ()=0
virtual IOResult  Load (ILoad *iload)=0
virtual IOResult  Save (ISave *isave)=0

Member Function Documentation

virtual int Width ( ) [pure virtual]
Remarks:
Returns the width of the image in pixels.
virtual int Height ( ) [pure virtual]
Remarks:
Returns the height of the image in pixels.
virtual void SetImage ( UBYTE *  img ) [pure virtual]
Remarks:
Sets the image for the postage stamp.
Parameters:
UBYTE *img

This is an array of RGB triplets.
virtual void GetImage ( UBYTE *  img ) [pure virtual]
Remarks:
Retrieves the image bytes of the postage stamp.
Parameters:
UBYTE *img

This is an array of RGB triplets.
virtual void DeleteThis ( ) [pure virtual]
Remarks:
This method is called to delete this instance of the class.
virtual IOResult Load ( ILoad iload ) [pure virtual]
Remarks:
This method is used to load the postage stamp image.
virtual IOResult Save ( ISave isave ) [pure virtual]
Remarks:
This method is used to save the postage stamp image.

PStamp PStamp PStamp PStamp PStamp PStamp PStamp PStamp PStamp PStamp
PStamp PStamp PStamp PStamp PStamp PStamp PStamp PStamp PStamp PStamp