pub unsafe fn vexDisplayCopyRect(
x1: i32,
y1: i32,
x2: i32,
y2: i32,
pSrc: *mut u32,
srcStride: i32,
)
Expand description
Draw a buffer of pixels to a rectangular region of the screen.
Each u32 element in the buffer is considered a pixel and is parsed in the same format used by vexDisplayForegroundColor (RGB8). The function allows you to specify the region to write to, the pointer to your image buffer, and the stride (or the number of u32 pixels in your buffer per 1 row).
ยงSafety
Calls to jumptable functions are unsafe because jumptable functions are owned by VEXos and we cannot guarantee their safety.