Module x11rb::image [−][src]
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
ColorComponent | The description of a single color component. |
Image | The description of an image. |
PixelLayout | A collection of color components describing the red, green, and blue components of a pixel. |
Enums
BitsPerPixel | The number of bits required to store one pixel. |
ImageOrder | Order in which bytes are stored in memory. |
ScanlinePad | The padding of scanlines. |