Home| base |src.lib|graphic|fbuffer| FrameBufferImage Index

FrameBufferImage

Syntax
int FrameBufferImage(struct FrameBuffer *ptr, struct FrameBufferMatrix *matrix, struct FrameBuffer *img, unsigned char m, int x,int y,int sflg, struct FrameBufferClip *clip);
Header
base/rfbuffer.h
Library
rfbuf
Description

The FrameBufferImage function plots a bitmap image.

The argument rplot is a pointer to the frame buffer.

The argument matrix is an optional transformation matrix that can be applied to the bitmap. If this is set to a NULL pointer then no transformation is applied.

The bitmap image is pointed to by the argument img.

The argument m defines which color channels are active. Setting this argument to (0x0f) will output the color to all four channels. The most significant bit controls the alpha channel and the least significant bit controls the blue channel.

The position of the top-left hand corner of the bitmap is given by the arguments x, and y.

The argument sflg is a flag that determines whether interpolation is used to smooth the image; if this argument is set to a non-zero value then interpolation is used.

The clipping polygon is given by the argument clip. If this is set to a NULL pointer, no clipping is performed.

Returns
Returns zero on success. On error, a (-1) is returned.
Errors
On error, a (-1) is returned.
Example
None