CImage:PixelBytes


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

Syntax

nPixelBytes = CImage:PixelBytes()

bullet.gif    On failure, this method returns 0.

Example

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

     nPixelBytes = I:PixelBytes()

returns the value nPixelBytes = 4.

Related Topics

CImage class, Cols, Rows, Pixel Type


Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics, Inc. All Rights Reserved.