MPLAB® Harmony Graphics Suite
|
A pixel buffer is an array of pixel data that can be applied in bulk, or 'blit'ed, to the frame buffer. This method will not perform per-pixel operations on the incoming data. The incoming pixel data color format must match the format of the current target buffer. Area clipping operations are still performed if enabled.
LIB_EXPORT GFX_Result GFX_DrawDirectBlit( GFX_PixelBuffer* buffer, int32_t src_x, int32_t src_y, int32_t src_width, int32_t src_height, int32_t dest_x, int32_t dest_y );
Parameters |
Description |
buffer |
the pointer to the source pixel buffer |
src_x |
the x component of the rectangle of the buffer to blit, usually 0 |
src_y |
the y component of the rectangle of the buffer to blit, usually 0 |
src_width |
width of the rectangle of the buffer to blit, usually the entire with of the source buffer |
src_height |
height of the rectangle of the buffer to blit, usually the entire height of the source buffer |
dest_x |
the x position to blit the source rectangle in the destination buffer the y position to blit the source rectangle in the destination buffer |
GFX_Result - Returns GFX_TRUE if the blit was drawn successfully. Otherwise returns GFX_FALSE.
MPLAB® Harmony Graphics Suite
|