VintaSoft Imaging .NET SDK 15.1: Documentation for .NET developer
Vintasoft.Imaging.Codecs.Encoders Namespace / PngEncoderSettings Class / CompressionLevel Property
Syntax Requirements SeeAlso
In This Topic
CompressionLevel Property (PngEncoderSettings)
In This Topic
Gets or sets the compression level.
Syntax
'Declaration

<DefaultValueAttribute(6)>
<DescriptionAttribute("Compression level: 0 - no compression, 1 - best speed, 9 - best compression.")>
Public Property CompressionLevel As System.Int32

[DefaultValue(6)]
[Description("Compression level: 0 - no compression, 1 - best speed, 9 - best compression.")]
public System.Int32 CompressionLevel { get; set; }

Property Value

Possible values: from 0 to 9.
0 - no compression, 1 - best speed, 9 - best compression.
Default value is 6.
Requirements

Target Platforms: .NET 10; .NET 9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

See Also