.ds Vv 1.2.14 .TH VistaIOCopyBand 3 "24 April 1993" "VistaIO Version \*(Vv" .SH NAME VistaIOCopyBand \- copy image pixel values .SH SYNOPSIS .nf .B #include .PP .B VistaIOBoolean VistaIOCopyBand (\fIsrc\fP, \fIsrc_band\fP, \fIdest\fP, \fIdest_band\fP) .RS .B VistaIOImage \fIsrc\fP, \fIdest\fP; .B VistaIOBand \fIsrc_band\fP, \fIdest_band\fP; .RE .fi .SH ARGUMENTS .IP \fIsrc\fP 10n Specifies the image to copy from (the source image). .IP \fIsrc_band\fP May specify a particular band of the source image to copy from, or may be \fBVistaIOAllBands\fP to indicate that all bands of the source image should be copied. .IP \fIdest\fP Specifies the image to copy to (the destination image). .IP \fIdest_band\fP Specifies the first band of the destination image to receive pixel values from the source image. .SH DESCRIPTION \fBVistaIOCopyBand\fP copies pixel values from a source image, \fIsrc\fP, to a destination image, \fIdest\fP. The two images must have the same pixel representation, number of rows, and number of columns. .PP If \fIsrc_band\fP is the constant \fBVistaIOAllBands\fP, all of the source image's bands of pixel values are copied to the destination image beginning at the destination band \fIdest_band\fP. The destination image must have at least \fIdest_band\fP\ +\ \fBVistaIOImageNBands\fP\ (\fIsrc\fP)\ -\ 1 bands. .PP Otherwise, \fIsrc_band\fP specifies a single band of the source image. That band is copied to a single band, \fIdest_band\fP, of the destination image. The destination image must have at least \fIdest_band\fP\ +\ 1 bands. .PP Unlike most Vista image processing routines, this one does not copy the source image's attributes to the destination image. .SH "RETURN VALUES" \fBVistaIOCopyImage\fP returns .SB TRUE if it is successful and .SB FALSE otherwise. .SH "SEE ALSO" .na .nh .BR VistaIOCopyImage (3), .BR VistaIOCombineBands (3), .BR VistaIOImage (3), .ad .hy .SH DIAGNOSTICS .IP "``No destination specified.''" The destination image, \fIdest\fP must be supplied. .IP "``Band \fIband\fP referenced in image of \fInbands\fP band(s).''" The \fIsrc_band\fP (\fIdest_band\fP) argument is outside the range of source (destination) image band numbers. .IP "``Destination image has \fIdest_nbands\fP bands; \fInbands\fP expected.''" The destination image has too few bands. .IP "``Destination image has \fIdest_prop\fP \fIproperty\fP; \fIsrc_prop\fP expected.''" \fIProperty\fP is one of ``pixels'', ``rows'', or ``columns''. The destination image does not have the same pixel representation, number of rows, and number of columns as the source image. .SH AUTHOR Art Pope Adaption to vistaio: Gert Wollny