Previous: x/ zvpixsize Up: Miscellaneous Routines Next: x/ zvpixsizeu
status = xvpixsizeb(pixsize, type, unit) status = zvpixsizeb(pixsize, type, unit);
Return the size of a binary label value in bytes from a file. This routine is exactly like x/ zvpixsize except that the IHOST and RHOST values are obtained for binary labels from the file specified by UNIT, which must be open. It is provided merely as a shortcut to get the size of a binary label value for a file.
Returns the size of a pixel in bytes. If an error occurs (such as an invalid data type), PIXSIZE is returned as 0.
TYPE is the data type of the binary label value. It corresponds to the FORMAT label item in a file, although binary label values are not restricted to FORMAT and may be any data type. TYPE may be one of the standard VICAR data types: ``BYTE'', ``HALF'', ``FULL'', ``REAL'', ``DOUB'', or ``COMP''. The types ``WORD'', ``LONG'', and ``COMPLEX'' are also accepted, but are obsolete and should not be used.
UNIT is the unit number of an open file, which is used to obtain the source BINTFMT and BREALFMT. The values obtained from the file are used exactly like the x/ zvpixsize IHOST and RHOST.