Frame

from acron.testing import Frame
class Frame(width: int, height: int, data: bytes)

Bases: object

One rendered frame as 8-bit RGB, TOP row first (the drawing frame: pixel(x, y) with y down — a screenshot’s RAM image is bottom row first, and the flip happens once, here).

data is the bytes; memoryview(frame) (and so numpy.asarray, for a tool that has it) is a read-only (height, width, 3) view.

Inheritance diagram

digraph inheritance1001bbdda9 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "Frame" [URL="acron.testing.Frame.html#acron.testing.Frame",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="One rendered frame as 8-bit RGB, TOP row first (the drawing frame:"]; }
data
height
width