ComponentOne Bitmap for WinForms
C1.Win.C1DX.4.8 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 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