intro.bbdoc 990 B

123456789101112131415161718192021
  1. Pixmaps provide storage for rectangular regions of pixels.
  2. You can create a new pixmap using the #CreatePixmap command, or load a pixmap
  3. using #LoadPixmap.
  4. Pixmaps have 5 properties: width, height, a byte pointer to the pixmap's pixels, pitch and
  5. format.
  6. You can retrieve a pointer to a pixmap's pixels using the #PixmapPixelPtr command.
  7. A pixmap's pitch refers to the number of bytes between one row of pixels in the pixmap
  8. and the next. To retrieve a pixmap's pitch, use the #PixmapPitch command.
  9. A pixmap's pixel format determines how the pixels within a pixmap are stored in memory. This
  10. must be taken into account if you want to access pixels directly via a pixmap's pixel pointer.
  11. You can retrieve the format of a pixmap using the #PixmapFormat command, and convert pixmaps
  12. from one format to another using #ConvertPixmap.
  13. You can also use #ResizePixmap to resize a pixmap and flip a pixmap horizontally or vertically
  14. with #XFlipPixmap and #YFlipPixmap.