OOF2: The Manual
Name
RGBData8 (RGBData8) — RGB image data.
Synopsis
RGBData8
(rgbvalues
)
Details
-
Base class:
ImageData
-
Parameters:
rgbvalues
- RGB values. Type: A list of unsigned short integers.
Description
RGBData8
objects are used to store Image
pixels in OOF2 data files. The rgbvalues
argument contains a Python list
of unsigned short integers, representing the red, green, and blue
values of the pixels, starting at the top left of the image and
proceeding by rows. That is, the pixels are written in the order
described by the followind pseudocode:
loop over rows from top to bottom:
loop over columns from left to right:
write red, green, blue
The origin of the name RGBData8
is lost in
the mists of time. It should probably be
RGBData16
. Since it's only used internally
in data files, it's not worth changing it.