ULONG *raw = GetFrame(APTR handle, struct LoadAnimCtrl *ctrl);
HWEXT_ANIM_VECTOR
extension bit has been set. See Extension plugins for details. If that
is the case, this function must return the frame's raw pixel data and some information
about it. The pixel data needs to be returned as an array of 32-bit ARGB values.
and GetFrame()
also needs to take possible transformations that have been applied via
TransformFrame() into account.
Note that GetFrame()
is only called for vector anims. For raster anims, Hollywood
will obtain the pixel data from LoadFrame().
Furthermore, GetFrame()
has to provide some additional information in the
struct LoadAnimCtrl
pointer that is passed as the second parameter.
See OpenAnim for details on this structure.
The following information has to be provided by GetFrame()
:
Width:
GetFrame()
, this value must exactly match the width that has
been passed to the last call of TransformFrame().
Height:
GetFrame()
, this value must exactly match the height that has
been passed to the last call of TransformFrame().
LineWidth:
AlphaChannel:
True
or False
, depending on whether or not this frame has an
alpha channel.
The pointer that is returned by GetFrame()
must stay valid at least until the next
call to GetFrame()
or FreeVectorFrame() on this handle.
struct LoadAnimCtrl
for storing information
about the frame