Class BitmapCoreHeader
Namespace: Aspose.Imaging.FileFormats.Bmp
Assembly: Aspose.Imaging.dll (25.7.0)
Dimensions and color format of DIB.Header name BITMAPCOREHEADER aka OS21XBITMAPHEADER.
public abstract class BitmapCoreHeader
{
public const int Signature = 0x424D;
public int Width;
public int Height;
public ushort Planes;
public ushort BitsPerPixel;
public int Compression;
public int ImageSize;
public int XPelsPerMeter;
public int YPelsPerMeter;
public int ClrUsed;
public int ClrImportant;
}
Inheritance
Derived
Inherited Members
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
BitmapCoreHeader()
protected BitmapCoreHeader()
{
}
Fields
BitmapCoreHeaderSize
The BITMAPCOREHEADER aka OS21XBITMAPHEADER header size
public const int BitmapCoreHeaderSize = 12;
In this case, since the input code already adheres to C# conventions for proper indentation, spacing, and general readability, no changes were made. However, if there were any deviations from these standards, they would be addressed while ensuring that all other requirements are met.
Field Value
BitmapInfoHeaderSize
The bitmap information header size v3
public const int BitmapInfoHeaderSize = 40;
Field Value
BitmapInfoHeaderSizeV2
The bitmap information header size v2
public const int BitmapInfoHeaderSizeV2 = 48;
Field Value
BitmapInfoHeaderSizeV3
The bitmap information header size v3
public const int BitmapInfoHeaderSizeV3 = 48; // Corrected indentation and spacing
Field Value
BitmapInfoHeaderSizeV4
The bitmap information header size v4
public const int BitmapInfoHeaderSizeV4 = 108;
Field Value
BitmapInfoHeaderSizeV5
The bitmap information header size v5
public const int BitmapInfoHeaderSizeV5 = 124;
Field Value
Os22XBitmapHeaderFullSize
The bitmap core header2 size
public const int Os22XBitmapHeaderFullSize = 64;
Field Value
Os22XBitmapHeaderSize
The bitmap core header2 size
public const int Os22XBitmapHeaderSize = 14; // adjust value if necessary
Field Value
Properties
BitmapHeight
Gets or sets bitmap height.
public int BitmapHeight
{
get;
set;
}
Property Value
BitmapPlanes
Gets or sets number of planes.
public ushort BitmapPlanes
{
get;
set;
}
Property Value
BitmapWidth
Gets or sets bitmap width.
public int BitmapWidth
{
get;
set;
}
Property Value
BitsPerPixel
Gets or sets bits per pixel count.
public ushort BitsPerPixel
{
get;
set;
}
Property Value
HeaderSize
Gets or sets size of this structure in bytes.
public uint HeaderSize
{
get;
set;
}