Module x11rb::image

source ·
Expand description

Utility code for working with images.

This module contains the Image struct which represents an arbitrary image in ImageFormat::ZPixmap. If you do not know what ZPixmap means, then rest assured that you do not want to know the details. It suffices to know that the values of the individual pixels are saved one after another in memory.

An Image can be converted to a different internal representation. Image::native converts it to the native format of the X11 server. These conversions do not change the actual content of the image, but only the way that it is laid out in memory (e.g. byte order and padding). Specifically, there is no support for converting an image to another depth.

The code in this module is only available when the image feature of the library is enabled.

Structs

  • The description of a single color component.
  • The description of an image.
  • A collection of color components describing the red, green, and blue components of a pixel.

Enums