xil_dithermask_get_height(3)
NAME
xil_dithermask_get_height, xil_dithermask_get_width, xil_dithermask_get_nbands − read attributes of dither mask objects
SYNOPSIS
#include <xil/xil.h>
unsigned int xil_dithermask_get_height ( XilDitherMask mask);
unsigned int xil_dithermask_get_width ( XilDitherMask mask);
unsigned int xil_dithermask_get_nbands ( XilDitherMask mask);
DESCRIPTION
These routines control access to the dither mask object used in the xil_ordered_dither(3) operation. In each routine, mask is a handle to a dither mask.
xil_dithermask_get_width() gets the width of the specified dither mask.
xil_dithermask_get_nbands() gets the number of bands in the specified dither mask.
ERRORS
For a complete list of XIL error messages by number, consult Appendix B of the XIL Programmer’s Guide.
EXAMPLES
Get the dimensions of a dither mask:
XilDithermask dithermask;
unsigned int width, height, nbands;
width = xil_dithermask_get_width (dithermask);
height = xil_dithermask_get_height (dithermask);
nbands = xil_dithermask_get_nbands (dithermask);
SEE ALSO
xil_dithermask_create(3), xil_dithermask_get_by_name(3).
SunOS — Last change: 16 August 1993