📷 A modern, cross-platform, 2D Graphics library for .NET
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

43 lines
1.3 KiB

// Copyright (c) Six Labors.
// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Formats.Bmp;
/// <summary>
/// Configuration options for decoding Windows Bitmap images.
/// </summary>
public sealed class BmpDecoderOptions : ISpecializedDecoderOptions
{
/// <inheritdoc/>
public DecoderOptions GeneralOptions { get; init; } = new();
/// <summary>
/// Gets the value indicating how to deal with skipped pixels,
/// which can occur during decoding run length encoded bitmaps.
/// </summary>
public RleSkippedPixelHandling RleSkippedPixelHandling { get; init; }
/// <summary>
/// Gets a value indicating whether the additional alpha mask is processed at decoding time.
/// </summary>
/// <remarks>
/// Used by the icon decoder.
/// </remarks>
internal bool ProcessedAlphaMask { get; init; }
/// <summary>
/// Gets a value indicating whether to skip loading the BMP file header.
/// </summary>
/// <remarks>
/// Used by the icon decoder.
/// </remarks>
internal bool SkipFileHeader { get; init; }
/// <summary>
/// Gets a value indicating whether to treat the height as double of true height.
/// </summary>
/// <remarks>
/// Used by the icon decoder.
/// </remarks>
internal bool UseDoubleHeight { get; init; }
}