XSubImage

XSubImage The XSubImage() function creates a new image that is a subsection of an existing one. It allocates the memory necessary for the new XImage structure and returns a pointer to the new image. The data is copied from the source image, and the image must contain the rectangle defined by x, y, subimage_width, and subimage_height.

  1. XImage* XSubImage(XImage* ximage, int x, int y, uint width, uint height)
  2. XImage XSubImage(XImage* ximage, int x, int y, uint width, uint height)
    version(linux && !XUTIL_DEFINE_FUNCTIONS)
    extern (C) nothrow @nogc
    XSubImage
    (,
    int x
    ,
    int y
    ,
    uint width
    ,
    uint height
    )

Parameters

ximage XImage*

Specifies the image.

x int

Specify the x coordinate.

y int

Specify the y coordinate.

See Also

XAddPixel(), XCreateImage(), XGetPixel(), XPutPixel(), XSubImage(), http://tronche.com/gui/x/xlib/utilities/manipulating-images.html

Meta