Skip to main content

Class SKCodec

Namespace: SkiaSharp
Assembly: VelloSharp.Skia.Core.dll

public sealed class SKCodec : IDisposable

Inheritance​

object ← SKCodec

Implements​

IDisposable

Inherited Members​

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Properties​

Info​

public SKImageInfo Info { get; }

Property Value​

SKImageInfo

Methods​

Create(SKData)​

public static SKCodec Create(SKData data)

Parameters​

data SKData

Returns​

SKCodec

Create(SKManagedStream)​

public static SKCodec Create(SKManagedStream stream)

Parameters​

stream SKManagedStream

Returns​

SKCodec

Dispose()​

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

GetScaledDimensions(float)​

public SKImageInfo GetScaledDimensions(float scale)

Parameters​

scale float

Returns​

SKImageInfo

GetScaledDimensions(float, float)​

public SKImageInfo GetScaledDimensions(float scaleX, float scaleY)

Parameters​

scaleX float

scaleY float

Returns​

SKImageInfo

ToEncodedBytes()​

public byte[] ToEncodedBytes()

Returns​

byte[]