CImage:PixelBytes


The PixelBytes method returns the number of bytes per pixel in the image. These quantities are describe in the Mira Data Types table.

Syntax

nPixelBytes = CImage:PixelBytes()

where

    On failure, this method returns 0.

Example

Suppose a CImage object I is attached to an image with data type 32 bit real. Then

     nPixelBytes = I:PixelBytes()

returns the value nPixelBytes = 4.

Related Topics

Cols

Rows

Data Type

CImage class