ComponentOne Bitmap for UWP
GetBitsPerPixel Method (PixelFormat)

C1.UWP.DX Assembly > C1.Util.DX.WIC Namespace > PixelFormat Class : GetBitsPerPixel Method
The pixel format guid.
Gets the number of bits per pixel for a particular pixel format.
Syntax
'Declaration
 
Public Shared Function GetBitsPerPixel( _
   ByVal guid As System.Guid _
) As System.Integer
public static System.int GetBitsPerPixel( 
   System.Guid guid
)

Parameters

guid
The pixel format guid.

Return Value

The number of bits per pixel. If the pixel format guid is invalid, returns 0
See Also

Reference

PixelFormat Class
PixelFormat Members