CMovieBitmap

#include <vstcontrols.h>

class CMovieBitmap : public CControl;

A movie pixmap allows to display different subpixmaps according to its current value.


CMovieBitmap

1.0

CMovieBitmap ( CRect &size, CControlListener *listener, long tag, long subpixmaps, long heightOfOneImage, CBitmap *handle, CPoint &offset);

Create a movie pixmap with a given number and size of subpixmap.

size The enclosing rectangle, relative to the parent frame.
listener The object responsible for handling events in this control.
tag The index of the control.
subpixmaps The number of subpixmaps.
heightOfOneImage The height of one subpixmap in pixels.
handle The pixmap containing all the subpixmaps, stacked in height.
offset

[source] source

Example :

MyEditor::open (void *ptr)
{
myPixmap = new CBitmap (kMyPixmapID);

CPoint offset (0,0);
CRect size (
kMyControl_left,
kMyControl_top,
kMyControl_left + myPixmap->getWidth (),
kMyControl_top + myPixmap->getHeight ()
/ kNumSubPixmaps
);
myControl = new CMovieBitmap (
size,
this,
kMyControl,
kNumSubPixmaps,
myPixmap->getHeight () / kNumSubPixmaps,
myPixmap,
offset
);
frame->addView (myControl);
}

~CMovieBitmap

1.0

~CMovieBitmap ();

Destroy a movieBitmap object. The pixmap is destroyed if there is no more reference on it.

[source] source


draw

1.0

void draw (CDrawContext*);

Called when this control object needs to be drawed.

[source] source


Copyright ©2003 Steinberg Media Technologies GmbH. All Rights Reserved.