Struct ImageBackgroundColor
Represents a background color applied during image processing.
Implements
Namespace: FulcrumFS.Images
Assembly: FulcrumFS.Images.dll
Syntax
public readonly record struct ImageBackgroundColor : IEquatable<ImageBackgroundColor>
Constructors
| Name | Description |
|---|---|
| ImageBackgroundColor(byte, byte, byte, bool) | Initializes a new instance of the ImageBackgroundColor struct with the specified RGB values and a flag indicating whether to skip applying the color if transparency is supported. |
Properties
| Name | Description |
|---|---|
| B | Gets the blue component of the background color. |
| G | Gets the green component of the background color. |
| R | Gets the red component of the background color. |
| SkipIfTransparencySupported | Gets a value indicating whether to skip applying the background color if the source image and resulting format support transparency. |
Methods
| Name | Description |
|---|---|
| FromRgb(byte, byte, byte, bool) | Creates a new instance of the ImageBackgroundColor struct from RGB values a flag indicating whether to skip applying the color if transparency is supported. |