Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ xil_get_height(3) — SunOS 5.6

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

xil_get_imagetype(3)

xil_get_datatype(3)

xil_get_info(3)

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 image. 

xil_get_height() gets the height of image. 

xil_get_nbands() gets the number of bands in image. 

xil_get_size() gets the width and height of 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 5.6  —  Last change: 17 August 1993

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026