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.

version(linux && !XUTIL_DEFINE_FUNCTIONS)
@nogc
XImage
XSubImage
(
XImage* ximage
,
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