Class PBBitmap

3DS Max Plug-In SDK

Class PBBitmap

See Also: Class IParamBlock2, Class Bitmap, Class BitmapInfo, Class BitmapManager.

class PBBitmap

Description:

This class is available in release 3.0 and later only.

This is a Bitmap/BitmapInfo wrapper class. It is used by ParamBlock2s to store bitmap information. The class has two public data members that hold the BitmapInfo and the Bitmap itself.

Data Members:

public:

BitmapInfo bi;

Stores the BitmapInfo for the bitmap.

Bitmap *bm;

Points to the Bitmap itself.

Methods:

public:

Prototype:

PBBitmap(BitmapInfo &bi);

Remarks:

Implemented by the System

Constructor. The BitmapInfo data member is initialized to the BitmapInfo passed. The Bitmap pointer is set to NULL.

Prototype:

PBBitmap();

Remarks:

Implemented by the System

Constructor. The Bitmap pointer is set to NULL.

Prototype:

~PBBitmap();

Remarks:

Implemented by the System

Destructor. The Bitmap, if allocated, is deallocated.

Prototype:

void Load();

Remarks:

Implemented by the System

The BitmapManager is used to Load the bitmap as specified by the BitmapInfo.

Prototype:

PBBitmap* Clone();

Remarks:

Implemented by the System

Makes a copy of the bitmap and returns a pointer to it.