Browse Source
The colorPaletteSize is also part of the file size.
js/color-alpha-handling
Dirk Lemstra
5 years ago
No known key found for this signature in database
GPG Key ID: 57FEA4B5173E68
1 changed files with
1 additions and
1 deletions
-
src/ImageSharp/Formats/Bmp/BmpEncoderCore.cs
|
|
|
@ -171,7 +171,7 @@ namespace SixLabors.ImageSharp.Formats.Bmp |
|
|
|
|
|
|
|
var fileHeader = new BmpFileHeader( |
|
|
|
type: BmpConstants.TypeMarkers.Bitmap, |
|
|
|
fileSize: BmpFileHeader.Size + infoHeaderSize + infoHeader.ImageSize, |
|
|
|
fileSize: BmpFileHeader.Size + infoHeaderSize + colorPaletteSize + infoHeader.ImageSize, |
|
|
|
reserved: 0, |
|
|
|
offset: BmpFileHeader.Size + infoHeaderSize + colorPaletteSize); |
|
|
|
|
|
|
|
|