Class PixelTypeInfo
Contains information about the pixels that make up an images visual data.
Inherited Members
Namespace: SixLabors.ImageSharp.Formats
Assembly: SixLabors.ImageSharp.dll
Syntax
public class PixelTypeInfo
Constructors
| Improve this Doc View SourcePixelTypeInfo(Int32)
Initializes a new instance of the PixelTypeInfo class.
Declaration
public PixelTypeInfo(int bitsPerPixel)
Parameters
Type | Name | Description |
---|---|---|
Int32 | bitsPerPixel | Color depth, in number of bits per pixel. |
PixelTypeInfo(Int32, PixelAlphaRepresentation)
Initializes a new instance of the PixelTypeInfo class.
Declaration
public PixelTypeInfo(int bitsPerPixel, PixelAlphaRepresentation alpha)
Parameters
Type | Name | Description |
---|---|---|
Int32 | bitsPerPixel | Color depth, in number of bits per pixel. |
PixelAlphaRepresentation | alpha | The pixel alpha transparency behavior. |
Properties
| Improve this Doc View SourceAlphaRepresentation
Gets the pixel alpha transparency behavior. null means unknown, unspecified.
Declaration
public PixelAlphaRepresentation? AlphaRepresentation { get; }
Property Value
Type | Description |
---|---|
Nullable<PixelAlphaRepresentation> |
BitsPerPixel
Gets color depth, in number of bits per pixel.
Declaration
public int BitsPerPixel { get; }
Property Value
Type | Description |
---|---|
Int32 |