GetBitsPerChannel
Top  Previous  Next

Description

Returns the number of bits per color component of a pixel.


Syntax


[VB]
Value=objActiveGige.GetBitsPerChannel()


[C/C++]
HRESULT GetBitsPerChannel(long* pValue );


Data Types
[VB]

Return value: Long


Parameters
[C/C++]

pValue [out,retval]  
Pointer to the number of bytes per pixel  


Return Values


S_OK  
Success  
E_FAIL  
Failure  
 

Example


This VB example reads and displays the pixel depth:

value=ActiveGige1.GetBitsPerChannel()
MsgBox value
 

Remarks


The method returns the pixel depth of the internal image buffer of the ActiveGige object after the unpacking and color interpolation is performed. Depending on the selected format, the following value will be returned:

Pixel Format
Bits per channel
Mono8, Mono8s,
8
Mono10, Mono10Packed
10
Mono12, Mono12Packed
12
Mono14
14
Mono16
16
Bayer**8, Bayer**8Packed, RGB8, BGR8, RGBa8, BGRa8, YUV411_8_UYYVYY, YUV422_8_UYVY, YUV8_YUV, RGB8Planar
8
Bayer**10, Bayer**10Packed, RGB10, BGR10, BGR10V1Packed, BGR10V2Packed, RGB10Planar
10
Bayer**12, Bayer**12Packed, RGB12, BGR12, RGB12Planar
12
Bayer**16, RGB16Planar
16
Coord3D_ABC16
16
Coord3D_ABC32f
32