Download Sapera

Transcript
Drawing Within Images
Overview
The Graphic module manages the graphic capabilities of the Sapera library. It permits you to define the
graphic attributes and provides methods for drawing dots, lines, rectangles, and similar geometric
shapes to a specified buffer.
Graphic attributes include background color, foreground color, and operation mode.
In order to apply a drawing operator, the user must:
• Initialize the graphic subsystem.
• Set the graphic attributes.
• Specify a buffer where the shape or the vector representation will be drawn. Buffer
formats currently supported by the Graphic module are listed below:
Supported Format
•
Corresponding Buffer Format
Unsigned 8 bits/pixel
CORBUFFER_VAL_FORMAT_UINT8
Unsigned 16 bits/pixel
CORBUFFER_VAL_FORMAT_UINT16
Signed 8 bits/pixel
CORBUFFER_VAL_FORMAT_INT8
Signed 16 bits/pixel
CORBUFFER_VAL_FORMAT_INT16
Color, 24 bits/pixel
CORBUFFER_VAL_FORMAT_RGB888
Color, 32 bits/pixel
CORBUFFER_VAL_FORMAT_RGB8888
Use a graphic drawing operator.
Sapera User's Manual
Drawing Within Images • 63