Class SKBitmap
Namespace: SkiaSharp
Assembly: VelloSharp.Skia.Core.dll
public sealed class SKBitmap : IDisposable
Inheritance
Implements
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
SKBitmap()
public SKBitmap()
SKBitmap(SKImageInfo)
public SKBitmap(SKImageInfo info)
Parameters
info
SKImageInfo
Properties
AlphaType
public SKAlphaType AlphaType { get; }
Property Value
ColorType
public SKColorType ColorType { get; }
Property Value
Height
public int Height { get; }
Property Value
Info
public SKImageInfo Info { get; }
Property Value
IsEmpty
public bool IsEmpty { get; }
Property Value
IsImmutable
public bool IsImmutable { get; }
Property Value
RowBytes
public int RowBytes { get; }
Property Value
Width
public int Width { get; }
Property Value
Methods
Copy()
public SKBitmap Copy()
Returns
Decode(SKData)
public static SKBitmap? Decode(SKData data)
Parameters
data
SKData
Returns
Decode(SKManagedStream)
public static SKBitmap? Decode(SKManagedStream stream)
Parameters
stream
SKManagedStream
Returns
Decode(SKCodec, SKImageInfo)
public static SKBitmap Decode(SKCodec codec, SKImageInfo desired)
Parameters
codec
SKCodec
desired
SKImageInfo
Returns
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Erase(SKColor)
public void Erase(SKColor color)
Parameters
color
SKColor
GetPixels()
public nint GetPixels()
Returns
InstallPixels(SKImageInfo, nint, int, SKBitmapReleaseDelegate?, object?)
public void InstallPixels(SKImageInfo info, nint address, int rowBytes, SKBitmapReleaseDelegate? releaseProc, object? context)
Parameters
info
SKImageInfo
address
nint
rowBytes
int
releaseProc
SKBitmapReleaseDelegate?
context
object?
PeekPixels()
public SKPixmap PeekPixels()
Returns
Resize(SKImageInfo, SKSamplingOptions)
public SKBitmap Resize(SKImageInfo info, SKSamplingOptions options)
Parameters
info
SKImageInfo
options
SKSamplingOptions
Returns
SetImmutable()
public void SetImmutable()