touchgfx::RenderingBuffer::attach() method
@fn void RenderingBuffer::attach(unsigned char* buf_, unsigned char xAdjust_, unsigned width_, unsigned height_, int stride_); Attaches a buffer. Attaches a buffer. Can be used if the buffer is not ready when the Rendering buffer is created initially.
Arguments
buf_
xAdjust_
Horizontal adjustment of the x coordinate, used when bits per pixel is less than eight which implies that a uint8_t pointer cannot precisely address the start of the frame buffer.
width_
The width of the frame buffer to write.
height_
The height of the frame buffer to write.
stride_
How much to add the a pointer inside the frame buffer to advance to the next line in the frame buffer.