API diff: SkiaSharp.dll
SkiaSharp.dll
Assembly Version Changed: 1.56.0.0 vs 1.55.0.0
Namespace SkiaSharp
Type Changed: SkiaSharp.SKBitmap
Added methods:
public bool InstallPixels (SKPixmap pixmap);
public SKPixmap PeekPixels ();
public bool Resize (SKBitmap dst, SKBitmapResizeMethod method);
public SKBitmap Resize (SKImageInfo info, SKBitmapResizeMethod method);
public static bool Resize (SKBitmap dst, SKBitmap src, SKBitmapResizeMethod method);
Type Changed: SkiaSharp.SKCodec
Added properties:
public SKEncodedInfo EncodedInfo { get; }
public int FrameCount { get; }
public SKCodecFrameInfo[] FrameInfo { get; }
public int RepetitionCount { get; }
Added methods:
public SKCodecResult GetPixels (SKImageInfo info, IntPtr pixels, SKCodecOptions options);
public SKCodecResult GetPixels (SKImageInfo info, IntPtr pixels, int rowBytes, SKCodecOptions options);
Type Changed: SkiaSharp.SKCodecOptions
Added constructor:
public SKCodecOptions (int frameIndex, bool hasPriorFrame);
Added properties:
public int FrameIndex { get; set; }
public bool HasPriorFrame { get; set; }
Type Changed: SkiaSharp.SKColorFilter
Obsoleted methods:
[Obsolete ("Use CreateBlendMode(SKColor, SKBlendMode) instead.")]
public static SKColorFilter CreateXferMode (SKColor c, SKXferMode mode);
Added method:
[Obsolete ("Use CreateBlendMode(SKColor, SKBlendMode) instead.")]
public static SKColorFilter CreateBlendMode (SKColor c, SKXferMode mode);
Type Changed: SkiaSharp.SKImageFilter
Removed method:
public static SKImageFilter CreateMerge (SKImageFilter[] filters, SKXferMode[] modes, SKImageFilter.CropRect cropRect);
Added methods:
public static SKImageFilter CreateMerge (SKImageFilter[] filters, SKBlendMode[] modes, SKImageFilter.CropRect cropRect);
public static SKImageFilter CreateMerge (SKImageFilter first, SKImageFilter second, SKBlendMode mode, SKImageFilter.CropRect cropRect);
Type Changed: SkiaSharp.SKMaskFilter
Added method:
public static SKMaskFilter CreateShadow (float occluderHeight, SKPoint3 lightPos, float lightRadius, float ambientAlpha, float spotAlpha, SKShadowMaskFilterShadowFlags flags);
Type Changed: SkiaSharp.SKPicture
Obsoleted properties:
[Obsolete ("Use CullRect instead.")]
public SKRect Bounds { get; }
Added property:
public SKRect CullRect { get; }
Type Changed: SkiaSharp.SKPictureRecorder
Modified methods:
-public SKCanvas BeginRecording (SKRect rect)
+public SKCanvas BeginRecording (SKRect cullRect)
Type Changed: SkiaSharp.SKShader
Obsoleted methods:
[Obsolete ("Use CreateCompose(SKShader, SKShader, SKBlendMode) instead.")]
public static SKShader CreateCompose (SKShader shaderA, SKShader shaderB, SKXferMode mode);
Added method:
public static SKShader CreateCompose (SKShader shaderA, SKShader shaderB, SKBlendMode mode);
New Type: SkiaSharp.SKBitmapResizeMethod
[Serializable]
public enum SKBitmapResizeMethod {
Box = 0,
Hamming = 3,
Lanczos3 = 2,
Mitchell = 4,
Triangle = 1,
}
New Type: SkiaSharp.SKCodecFrameInfo
public struct SKCodecFrameInfo {
// properties
public int Duration { get; set; }
public int RequiredFrame { get; set; }
}
New Type: SkiaSharp.SKEncodedInfo
public struct SKEncodedInfo {
// constructors
public SKEncodedInfo (SKEncodedInfoColor color);
public SKEncodedInfo (SKEncodedInfoColor color, SKEncodedInfoAlpha alpha, byte bitsPerComponent);
// properties
public SKEncodedInfoAlpha Alpha { get; }
public byte BitsPerComponent { get; }
public byte BitsPerPixel { get; }
public SKEncodedInfoColor Color { get; }
}
New Type: SkiaSharp.SKEncodedInfoAlpha
[Serializable]
public enum SKEncodedInfoAlpha {
Binary = 2,
Opaque = 0,
Unpremul = 1,
}
New Type: SkiaSharp.SKEncodedInfoColor
[Serializable]
public enum SKEncodedInfoColor {
Bgr = 5,
Bgra = 7,
Bgrx = 6,
Gray = 0,
GrayAlpha = 1,
InvertedCmyk = 10,
Palette = 2,
Rgb = 3,
Rgba = 4,
Ycck = 11,
Yuv = 8,
Yuva = 9,
}
New Type: SkiaSharp.SKPixmap
public class SKPixmap : SkiaSharp.SKObject, System.IDisposable {
// constructors
public SKPixmap ();
public SKPixmap (SKImageInfo info, IntPtr addr, int rowBytes, SKColorTable ctable);
// properties
public SKAlphaType AlphaType { get; }
public int BytesPerPixel { get; }
public SKColorTable ColorTable { get; }
public SKColorType ColorType { get; }
public int Height { get; }
public SKImageInfo Info { get; }
public int RowBytes { get; }
public int Width { get; }
// methods
protected override void Dispose (bool disposing);
public IntPtr GetPixels ();
public void Reset ();
public void Reset (SKImageInfo info, IntPtr addr, int rowBytes, SKColorTable ctable);
public static bool Resize (SKPixmap dst, SKPixmap src, SKBitmapResizeMethod method);
}
New Type: SkiaSharp.SKShadowMaskFilterShadowFlags
[Serializable]
[Flags]
public enum SKShadowMaskFilterShadowFlags {
All = 7,
GaussianEdge = 4,
LargerUmbra = 2,
None = 0,
TransparentOccluder = 1,
}