ComponentOne Bitmap for WPF
C1.WPF.DX.4.5.2 Assembly / C1.Util.DX.WIC Namespace / PixelFormat Class / GetBitsPerPixel Method
The pixel format guid.

In This Topic
    GetBitsPerPixel Method (PixelFormat)
    In This Topic
    Gets the number of bits per pixel for a particular pixel format.
    Syntax
    'Declaration
     
    Public Shared Function GetBitsPerPixel( _
       ByVal guid As Guid _
    ) As Integer
    public static int GetBitsPerPixel( 
       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