Function x11rb::protocol::shm::get_image

source ·
pub fn get_image<Conn>(
    conn: &Conn,
    drawable: Drawable,
    x: i16,
    y: i16,
    width: u16,
    height: u16,
    plane_mask: u32,
    format: u8,
    shmseg: Seg,
    offset: u32
) -> Result<Cookie<'_, Conn, GetImageReply>, ConnectionError>
where Conn: RequestConnection + ?Sized,
Expand description

Copies data from the specified drawable to the shared memory segment..

Copy data from the specified drawable to the shared memory segment. The amount of bytes written to the destination image is always equal to the number of bytes read from the shared memory segment.

§Fields

  • drawable - The drawable to copy the image out of.
  • x - The X coordinate in the drawable to begin copying at.
  • y - The Y coordinate in the drawable to begin copying at.
  • width - The width of the image to copy.
  • height - The height of the image to copy.
  • plane_mask - A mask that determines which planes are used.
  • format - The format to use for the copy (???).
  • shmseg - The destination shared memory segment.
  • offset - The offset in the shared memory segment to copy data to.