The object represents an affine coordinate transformation that maps points from rectangle (x0, y0, w0, h0) to rectangle (x1, y1, w1, h1).
Rotate the output rectangle counter-clockwise by n degrees.
Apply the coordinate transform to a point or a rectangle.
Apply the inverse coordinate transform to a point or a rectangle.
Reverse the X coordinates of the output rectangle.
Reverse the Y coordinates of the output rectangle.
Abstract base for all pixel formats.
Inheritance diagram:
digraph inheritance82e67ac580 { rankdir=LR; size="8.0, 12.0"; "PixelFormat" [style="setlinewidth(0.5)",URL="#djvu.decode.PixelFormat",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",tooltip="Abstract pixel format.",height=0.25,shape=box,fontsize=10]; "PixelFormatGrey" [style="setlinewidth(0.5)",URL="#djvu.decode.PixelFormatGrey",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",tooltip="PixelFormatGrey() -> a pixel format",height=0.25,shape=box,fontsize=10]; "PixelFormat" -> "PixelFormatGrey" [arrowsize=0.5,style="setlinewidth(0.5)"]; "PixelFormatPackedBits" [style="setlinewidth(0.5)",URL="#djvu.decode.PixelFormatPackedBits",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",tooltip="PixelFormatPackedBits(endianness) -> a pixel format",height=0.25,shape=box,fontsize=10]; "PixelFormat" -> "PixelFormatPackedBits" [arrowsize=0.5,style="setlinewidth(0.5)"]; "PixelFormatPalette" [style="setlinewidth(0.5)",URL="#djvu.decode.PixelFormatPalette",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",tooltip="PixelFormatPalette(palette) -> a pixel format",height=0.25,shape=box,fontsize=10]; "PixelFormat" -> "PixelFormatPalette" [arrowsize=0.5,style="setlinewidth(0.5)"]; "PixelFormatRgb" [style="setlinewidth(0.5)",URL="#djvu.decode.PixelFormatRgb",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",tooltip="PixelFormatRgb([byteorder='RGB']) -> a pixel format",height=0.25,shape=box,fontsize=10]; "PixelFormat" -> "PixelFormatRgb" [arrowsize=0.5,style="setlinewidth(0.5)"]; "PixelFormatRgbMask" [style="setlinewidth(0.5)",URL="#djvu.decode.PixelFormatRgbMask",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",tooltip="PixelFormatRgbMask(red_mask, green_mask, blue_mask[, xor_value], bpp=16) -> a pixel format",height=0.25,shape=box,fontsize=10]; "PixelFormat" -> "PixelFormatRgbMask" [arrowsize=0.5,style="setlinewidth(0.5)"]; }
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.
Return the depth of the image, in bits per pixel.
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:
8-bit, grey pixel format.
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:
Render color page or stencil.
Render stencil or color page.
Render color page or fail.
Render stencil or fail.
Render color background layer.
Render color foreground layer.