Stratify Graphics Documentation

Introduction

The stratify graphics library is designed for working with small displays. It stores bitmaps using 1, 2, 4, or 8 bits per pixel (bpp). The bitmap can then be mapped to a display using a color palette. This approach allows powerful graphics to run on devices with very little memory and then to be mapped to color displays.

Let's take an example setup with the following hardware:

  • Cortex M3 processor with 64KB of RAM
  • 128x128xRGB565 Display

The native display requires 32KB of video memory in order to perform fast graphics operations. If you are building a multi-color UI than only uses a few colors, you can use the Stratify Graphics library and represent the UI using 4bpp (16 colors). The UI could be represented in 128*128*4/8 = 8KB of RAM leaving plenty of RAM for other parts of the application.

Features

  • Compile time configuration of 1, 2, 4, or 8 bits per pixels
  • Bitmap memory management
  • Bitmap Transforms
  • Bitmap Coordinates
  • Draw vector graphics and bitmaps using a pen
  • Pixel manipulation