chickadee » macaw » rgb8-array-at

rgb8-array-at pointer width height #!optional pitchprocedure
rgb8-array-parent rgb8-array_1procedure
set! (rgb8-array-parent rgb8-array_1) parentsetter

rgb8-array-at creates an rgb8-array which reads and writes to the memory at pointer, which can be a pointer or a locative. If pitch is omitted, it defaults to (* width 4). The memory starting at pointer must be at least (* pitch height) bytes long, containing groups of four unsigned 8-bit integers in the order r, g, b, a.

rgb8-array-parent gets or sets the rgb8-array's parent, which can be any object that the array depends on. This reference prevents the parent from being garbage collected while the array is still accessing the parent's memory.