[Closed] Save bitmap as param in ParamBlockDesc2
I have a panel with a SS_BITMAP placed there, since I use it as preview I have a beatiful “nonpreview.bmp” map loaded there.
Also it has some other params like an TYPE_COLORSWATCH etc they are saved/loaded with the scene without problems but that was the easy part.
Someone could give me a tip about how I could save a bitmap? Notice that I’m not refering to save a bitmap to an external file but as another param.
How I could read it? How I could modify it?
Thanks in advance!
TYPE_BITMAP
A pointer to a Bitmap/BitmapInfo object (PBBitmap*). This can be one of three types: a reference owned by the parameter block, a reference owned by the block owner, or no reference management (just a copy of the pointer).
virtual PBBitmap* IParamBlock2::GetBitmap ( ParamID id, TimeValue t=0, int tabIndex = 0 ) [pure virtual]
virtual BOOL IParamBlock2::SetValue ( ParamID id, TimeValue t, PBBitmap * v, int tabIndex = 0 ) [pure virtual]
Thank you for your response but it doesn’t store a bitmap it just saves a pointer to one, also there is no way to manage a bitmap used in a control.
Regards.