MPLAB® Harmony Graphics Suite > Graphics Library > Aria Graphics Library > Aria Hardware Abstraction Layer (HAL) > Library Interface > a) Functions > GFX_DrawStretchBlit Function
MPLAB® Harmony Graphics Suite
GFX_DrawStretchBlit Function

A pixel buffer is an array of pixel data that can be applied in bulk, or 'blit'ed, to the frame buffer. Pixel buffers may be of a different color mode and will be converted to match the destination frame buffer before application. This version can resize the source data before blitting. The option GFXF_RESIZE_METHOD selects the resize technique.

C
LIB_EXPORT GFX_Result GFX_DrawStretchBlit(
    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, 
    int32_t dest_width, 
    int32_t dest_height
);
Parameters
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
 
dest_width 
the desired resize width
 
dest_height 
the desired resize height 
Returns

GFX_Result - Returns GFX_TRUE if the blit was drawn successfully. Otherwise returns GFX_FALSE.

MPLAB® Harmony Graphics Suite