VintaSoft Imaging .NET SDK 12.4: Documentation for .NET developer
Vintasoft.Imaging.Codecs.ImageFiles Namespace / ImagePage Class / BitsPerPixel Property
Syntax Requirements SeeAlso
In This Topic
    BitsPerPixel Property (ImagePage)
    In This Topic
    Gets the number of bits per pixel of the image page.
    Syntax
    'Declaration
    
    Public MustOverride ReadOnly Property BitsPerPixel As System.Int32
    
    
    public abstract System.Int32 BitsPerPixel { get; }
    
    
    public: __property abstract System.Int32 get_BitsPerPixel();
    
    
    
    public:
    abstract property System.Int32 BitsPerPixel { System.Int32 get(); }

    Property Value

    For 1-bpp black-white image this value will return 1.
    For 2-bpp palette/gray image this value will return 8 because image page will be returned as 8-bpp palette/gray image.
    For 4-bpp palette/gray image this value will return 8 because image page will be returned as 8-bpp palette/gray image.
    For 8-bpp palette/gray image this value will return 8.
    For 24-bpp RGB image this value will return 24.
    For 32-bpp ARGB image this value will return 32.
    For 48-bpp RGB image this value will return 48.
    For 64-bpp ARGB image this value will return 64.
    For 32-bpp CMYK image this value will return 24 because image page will be returned as 24-bpp RGB image.
    Requirements

    Target Platforms: .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also