ImageExtensionsSaveAsHighColorGif(Image, String, Boolean, Color, Byte) Method
Namespace: KGySoft.DrawingAssembly: KGySoft.Drawing (in KGySoft.Drawing.dll) Version: 8.1.0
public static void SaveAsHighColorGif(
this Image image,
string fileName,
bool allowFullScan = false,
Color backColor = default,
byte alphaThreshold = 128
)
<ExtensionAttribute>
Public Shared Sub SaveAsHighColorGif (
image As Image,
fileName As String,
Optional allowFullScan As Boolean = false,
Optional backColor As Color = Nothing,
Optional alphaThreshold As Byte = 128
)
public:
[ExtensionAttribute]
static void SaveAsHighColorGif(
Image^ image,
String^ fileName,
bool allowFullScan = false,
Color backColor = Color(),
unsigned char alphaThreshold = 128
)
[<ExtensionAttribute>]
static member SaveAsHighColorGif :
image : Image *
fileName : string *
?allowFullScan : bool *
?backColor : Color *
?alphaThreshold : byte
(* Defaults:
let _allowFullScan = defaultArg allowFullScan false
let _backColor = defaultArg backColor new Color()
let _alphaThreshold = defaultArg alphaThreshold 128
*)
-> unit
- image Image
- The Image to save. If contains multiple images or frames, then only the current image or frame will be saved.
- fileName String
- The name of the file to which to save the image. The directory of the specified path is created if it does not exist.
- allowFullScan Boolean (Optional)
- to allow scanning the whole image for each layers to be able to re-use the local palette of the current layer.
to expand the initial layer area to the local pixels only. This parameter is optional.
Default value: . - backColor Color (Optional)
- Colors with alpha (transparency), whose Color.A property
is equal to or greater than alphaThreshold will be blended with this color during the encoding.
The alpha value (Color.A property) of the specified background color is ignored. This parameter is optional.
Default value: Empty, which has the same RGB values as Black. - alphaThreshold Byte (Optional)
- Specifies a threshold value for the Color.A property, under which a pixel is considered transparent.
If 0, then the final composite image will not have transparent pixels. This parameter is optional.
Default value: 128.
In Visual Basic and C#, you can call this method as an instance method on any object of type
Image. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).