The object represents an affine coordinate transformation that maps points from rectangle (x0, y0, w0, h0) to rectangle (x1, y1, w1, h1).
Abstract base for all pixel formats.
Inheritance diagram:
Flag indicating whether the rows in the pixel buffer are stored starting from the top or the bottom of the image.
Default ordering starts from the bottom of the image. This is the opposite of the X11 convention.
Flag indicating whether the y coordinates in the drawing area are oriented from bottom to top, or from top to bottom.
The default is bottom to top, similar to PostScript. This is the opposite of the X11 convention.
The final depth of the image on the screen. This is used to decide which dithering algorithm should be used.
The default is usually appropriate.
Gamma of the display for which the pixels are intended. This will be combined with the gamma stored in DjVu documents in order to compute a suitable color correction.
The default value is 2.2.
24-bit pixel format, with:
byte order.
red_mask, green_mask and blue_mask are bit masks for color components for each pixel. The resulting color is then xored with the xor_value.
For example, PixelFormatRgbMask(0xf800, 0x07e0, 0x001f, bpp=16) is a highcolor format with:
Palette pixel format.
palette must be a dictionary which contains 216 (6 x 6 x 6) entries of a web color cube, such that:
Bitonal, 1 bit per pixel format with: