xil_get_width(3)
NAME
xil_get_width, xil_get_height, xil_get_nbands, xil_get_size − get width, height, number of bands, or size of image
SYNOPSIS
#include <xil/xil.h>
unsigned int xil_get_width (XilImage image);
unsigned int xil_get_height (XilImage image);
unsigned int xil_get_nbands (XilImage image);
void xil_get_size (XilImage image,
unsigned int ∗width,
unsigned int ∗height);
DESCRIPTION
xil_get_width() gets the width of an image.
xil_get_height() gets the height of an image.
xil_get_nbands() gets the number of bands in an image.
xil_get_size() gets the width and height of an image.
These functions may be called on all images.
ERRORS
For a complete list of XIL error messages by number, consult Appendix B of the XIL Programmer’s Guide.
EXAMPLES
Get the width and height of an image:
unsigned int width, height;
XilImage image;
width = xil_get_width (image);
height = xil_get_height (image);
Or alternatively:
xil_get_size (image, ∗width, ∗height);
SEE ALSO
xil_get_imagetype(3), xil_get_datatype(3), xil_get_info(3).
SunOS — Last change: 17 August 1993