ImageGear v26.5 - Updated
ImageGear.Core Assembly / ImageGear.Core Namespace / ImGearDIB Class / BitsPerChannel Property




In This Topic
    BitsPerChannel Property (ImGearDIB)
    In This Topic
    Gets allocated (actual) size of store for each channel in bits.
    Syntax
    'Declaration
     
    Public ReadOnly Property BitsPerChannel As Integer
    'Usage
     
    Dim instance As ImGearDIB
    Dim value As Integer
     
    value = instance.BitsPerChannel
    public int BitsPerChannel {get;}
    public: __property int get_BitsPerChannel();
    public:
    property int BitsPerChannel {
       int get();
    }

    Property Value

    Positive number that specifies the actual size of channel in bits.
    Remarks

    Returns allocated (actual) size of any image channel in bits. The values 8, 16 and 32 are used as a basis for the array allocation.

    Value returned by this property is correct for uncompressed DIBs only. Compressed DIBs have a different channel structure. For these sorts of DIBs this property always returns 8, although this value has no real meaning.

    See Also