LRaspi  2022.1
A Lua Player for Rasberry Pi
Draw module

Functions

void lraspi_draw_print (const char *text, int x, int y)
 Draws a text with default font. More...
 
void lraspi_draw_blit (lraspi_Image *image, int x, int y)
 Draws an image with default foreground colour. More...
 

Detailed Description

Functions to draw elements into images

Function Documentation

◆ lraspi_draw_blit()

void lraspi_draw_blit ( lraspi_Image image,
int  x,
int  y 
)

Draws an image with default foreground colour.

Parameters
imageThe image object to draw.
xx-axis screen position (in pixels) where the image will be blited.
yy-axis screen position (in pixels) where the image will be blited.

◆ lraspi_draw_print()

void lraspi_draw_print ( const char *  text,
int  x,
int  y 
)

Draws a text with default font.

Parameters
textString to print.
xx-axis screen position (in pixels) where the text will be printed.
yy-axis screen position (in pixels) where the text will be printed.