Update the docs and changelog
This commit is contained in:
Родитель
fc9f030a08
Коммит
842d6c7946
|
@ -4,26 +4,6 @@
|
|||
|
||||
### Namespace SkiaSharp
|
||||
|
||||
#### Type Changed: SkiaSharp.SKColor
|
||||
|
||||
Modified methods:
|
||||
|
||||
```diff
|
||||
-public override bool Equals (object other)
|
||||
+public override bool Equals (object obj)
|
||||
```
|
||||
|
||||
|
||||
#### Type Changed: SkiaSharp.SKPMColor
|
||||
|
||||
Modified methods:
|
||||
|
||||
```diff
|
||||
-public override bool Equals (object other)
|
||||
+public override bool Equals (object obj)
|
||||
```
|
||||
|
||||
|
||||
#### Type Changed: SkiaSharp.SKSize
|
||||
|
||||
Modified methods:
|
||||
|
|
|
@ -124,6 +124,12 @@ public static bool op_Inequality (GRGlTextureInfo left, GRGlTextureInfo right);
|
|||
Added methods:
|
||||
|
||||
```csharp
|
||||
public static SKBitmap Decode (System.ReadOnlySpan<byte> buffer);
|
||||
public static SKBitmap Decode (System.ReadOnlySpan<byte> buffer, SKImageInfo bitmapInfo);
|
||||
public static SKImageInfo DecodeBounds (System.ReadOnlySpan<byte> buffer);
|
||||
public SKData Encode (SKEncodedImageFormat format, int quality);
|
||||
public bool Encode (System.IO.Stream dst, SKEncodedImageFormat format, int quality);
|
||||
public SKBitmap Resize (SKSizeI size, SKFilterQuality quality);
|
||||
public SKShader ToShader ();
|
||||
public SKShader ToShader (SKShaderTileMode tmx, SKShaderTileMode tmy);
|
||||
public SKShader ToShader (SKShaderTileMode tmx, SKShaderTileMode tmy, SKMatrix localMatrix);
|
||||
|
@ -149,6 +155,7 @@ public void DrawAtlas (SKImage atlas, SKRect[] sprites, SKRotationScaleMatrix[]
|
|||
public void DrawPatch (SKPoint[] cubics, SKColor[] colors, SKPoint[] texCoords, SKPaint paint);
|
||||
public void DrawPatch (SKPoint[] cubics, SKColor[] colors, SKPoint[] texCoords, SKBlendMode mode, SKPaint paint);
|
||||
public void DrawRoundRectDifference (SKRoundRect outer, SKRoundRect inner, SKPaint paint);
|
||||
public int SaveLayer ();
|
||||
```
|
||||
|
||||
|
||||
|
@ -198,13 +205,6 @@ Added interface:
|
|||
System.IEquatable<SKColor>
|
||||
```
|
||||
|
||||
Modified methods:
|
||||
|
||||
```diff
|
||||
-public override bool Equals (object other)
|
||||
+public override bool Equals (object obj)
|
||||
```
|
||||
|
||||
Added method:
|
||||
|
||||
```csharp
|
||||
|
@ -281,6 +281,16 @@ public static bool op_Inequality (SKDocumentPdfMetadata left, SKDocumentPdfMetad
|
|||
```
|
||||
|
||||
|
||||
#### Type Changed: SkiaSharp.SKDynamicMemoryWStream
|
||||
|
||||
Added methods:
|
||||
|
||||
```csharp
|
||||
public bool CopyTo (System.IO.Stream dst);
|
||||
public void CopyTo (System.Span<byte> data);
|
||||
```
|
||||
|
||||
|
||||
#### Type Changed: SkiaSharp.SKFontMetrics
|
||||
|
||||
Added interface:
|
||||
|
@ -321,9 +331,17 @@ public static bool op_Inequality (SKHighContrastConfig left, SKHighContrastConfi
|
|||
|
||||
#### Type Changed: SkiaSharp.SKImage
|
||||
|
||||
Obsoleted methods:
|
||||
|
||||
```diff
|
||||
[Obsolete ("Use FromPixels (SKImageInfo, SKData, int) instead.")]
|
||||
public static SKImage FromPixelData (SKImageInfo info, SKData data, int rowBytes);
|
||||
```
|
||||
|
||||
Added methods:
|
||||
|
||||
```csharp
|
||||
public static SKImage FromPixels (SKImageInfo info, SKData data);
|
||||
public bool IsValid (GRContext context);
|
||||
public bool ReadPixels (SKPixmap pixmap);
|
||||
public bool ReadPixels (SKImageInfo dstInfo, IntPtr dstPixels);
|
||||
|
@ -349,6 +367,7 @@ Added methods:
|
|||
public virtual bool Equals (SKImageInfo obj);
|
||||
public override bool Equals (object obj);
|
||||
public override int GetHashCode ();
|
||||
public SKImageInfo WithSize (SKSizeI size);
|
||||
public static bool op_Equality (SKImageInfo left, SKImageInfo right);
|
||||
public static bool op_Inequality (SKImageInfo left, SKImageInfo right);
|
||||
```
|
||||
|
@ -403,9 +422,11 @@ System.IEquatable<SKMask>
|
|||
Added methods:
|
||||
|
||||
```csharp
|
||||
public static SKMask Create (System.ReadOnlySpan<byte> image, SKRectI bounds, uint rowBytes, SKMaskFormat format);
|
||||
public virtual bool Equals (SKMask obj);
|
||||
public override bool Equals (object obj);
|
||||
public override int GetHashCode ();
|
||||
public System.Span<byte> GetImageSpan ();
|
||||
public static bool op_Equality (SKMask left, SKMask right);
|
||||
public static bool op_Inequality (SKMask left, SKMask right);
|
||||
```
|
||||
|
@ -413,6 +434,12 @@ public static bool op_Inequality (SKMask left, SKMask right);
|
|||
|
||||
#### Type Changed: SkiaSharp.SKMatrix
|
||||
|
||||
Added constructor:
|
||||
|
||||
```csharp
|
||||
public SKMatrix (float[] values);
|
||||
```
|
||||
|
||||
Added interface:
|
||||
|
||||
```csharp
|
||||
|
@ -426,9 +453,10 @@ public static SKMatrix Empty;
|
|||
public static SKMatrix Identity;
|
||||
```
|
||||
|
||||
Added property:
|
||||
Added properties:
|
||||
|
||||
```csharp
|
||||
public bool IsIdentity { get; }
|
||||
public bool IsInvertible { get; }
|
||||
```
|
||||
|
||||
|
@ -474,6 +502,7 @@ public virtual bool Equals (SKMatrix obj);
|
|||
public override bool Equals (object obj);
|
||||
public override int GetHashCode ();
|
||||
public SKMatrix Invert ();
|
||||
public SKPoint MapVector (SKPoint vector);
|
||||
public SKMatrix PostConcat (SKMatrix matrix);
|
||||
public SKMatrix PreConcat (SKMatrix matrix);
|
||||
public static bool op_Equality (SKMatrix left, SKMatrix right);
|
||||
|
@ -493,6 +522,8 @@ Added methods:
|
|||
|
||||
```csharp
|
||||
public static SKMatrix44 CreateTranslation (float x, float y, float z);
|
||||
public void Set3x3ColumnMajor (float[] src);
|
||||
public void Set3x3RowMajor (float[] src);
|
||||
public static SKMatrix44 op_Implicit (SKMatrix matrix);
|
||||
```
|
||||
|
||||
|
@ -505,13 +536,6 @@ Added interface:
|
|||
System.IEquatable<SKPMColor>
|
||||
```
|
||||
|
||||
Modified methods:
|
||||
|
||||
```diff
|
||||
-public override bool Equals (object other)
|
||||
+public override bool Equals (object obj)
|
||||
```
|
||||
|
||||
Added method:
|
||||
|
||||
```csharp
|
||||
|
@ -519,6 +543,28 @@ public virtual bool Equals (SKPMColor obj);
|
|||
```
|
||||
|
||||
|
||||
#### Type Changed: SkiaSharp.SKPath
|
||||
|
||||
Added method:
|
||||
|
||||
```csharp
|
||||
public void Transform (SKMatrix matrix, SKPath destination);
|
||||
```
|
||||
|
||||
|
||||
#### Type Changed: SkiaSharp.SKPathMeasure
|
||||
|
||||
Added methods:
|
||||
|
||||
```csharp
|
||||
public SKMatrix GetMatrix (float distance, SKPathMeasureMatrixFlags flags);
|
||||
public SKPoint GetPosition (float distance);
|
||||
public SKPath GetSegment (float start, float stop, bool startWithMoveTo);
|
||||
public SKPoint GetTangent (float distance);
|
||||
public void SetPath (SKPath path);
|
||||
```
|
||||
|
||||
|
||||
#### Type Changed: SkiaSharp.SKPicture
|
||||
|
||||
Added methods:
|
||||
|
@ -533,9 +579,28 @@ public SKShader ToShader (SKShaderTileMode tmx, SKShaderTileMode tmy, SKMatrix l
|
|||
|
||||
#### Type Changed: SkiaSharp.SKPixmap
|
||||
|
||||
Obsoleted methods:
|
||||
|
||||
```diff
|
||||
[Obsolete ("Use Encode(SKWStream, SKJpegEncoderOptions) instead.")]
|
||||
public static bool Encode (SKWStream dst, SKPixmap src, SKJpegEncoderOptions options);
|
||||
[Obsolete ("Use Encode(SKWStream, SKPngEncoderOptions) instead.")]
|
||||
public static bool Encode (SKWStream dst, SKPixmap src, SKPngEncoderOptions options);
|
||||
[Obsolete ("Use Encode(SKWStream, SKWebpEncoderOptions) instead.")]
|
||||
public static bool Encode (SKWStream dst, SKPixmap src, SKWebpEncoderOptions options);
|
||||
[Obsolete ("Use Encode(SKWStream, SKEncodedImageFormat, int) instead.")]
|
||||
public static bool Encode (SKWStream dst, SKBitmap src, SKEncodedImageFormat format, int quality);
|
||||
[Obsolete ("Use Encode(SKWStream, SKEncodedImageFormat, int) instead.")]
|
||||
public static bool Encode (SKWStream dst, SKPixmap src, SKEncodedImageFormat encoder, int quality);
|
||||
```
|
||||
|
||||
Added methods:
|
||||
|
||||
```csharp
|
||||
public bool Encode (System.IO.Stream dst, SKJpegEncoderOptions options);
|
||||
public bool Encode (System.IO.Stream dst, SKPngEncoderOptions options);
|
||||
public bool Encode (System.IO.Stream dst, SKWebpEncoderOptions options);
|
||||
public bool Encode (System.IO.Stream dst, SKEncodedImageFormat encoder, int quality);
|
||||
public bool Erase (SKColorF color);
|
||||
public bool Erase (SKColorF color, SKRectI subset);
|
||||
```
|
||||
|
@ -774,6 +839,89 @@ public static bool op_Inequality (SKSurfaceProps left, SKSurfaceProps right);
|
|||
```
|
||||
|
||||
|
||||
#### Type Changed: SkiaSharp.SKSvgCanvas
|
||||
|
||||
Obsoleted methods:
|
||||
|
||||
```diff
|
||||
[Obsolete ("Use Create(SKRect, Stream) instead.")]
|
||||
public static SKCanvas Create (SKRect bounds, SKXmlWriter writer);
|
||||
```
|
||||
|
||||
Added methods:
|
||||
|
||||
```csharp
|
||||
public static SKCanvas Create (SKRect bounds, SKWStream stream);
|
||||
public static SKCanvas Create (SKRect bounds, System.IO.Stream stream);
|
||||
```
|
||||
|
||||
|
||||
#### Type Changed: SkiaSharp.SKSwizzle
|
||||
|
||||
Added method:
|
||||
|
||||
```csharp
|
||||
public static void SwapRedBlue (System.Span<byte> pixels);
|
||||
```
|
||||
|
||||
|
||||
#### Type Changed: SkiaSharp.SKTypeface
|
||||
|
||||
Added property:
|
||||
|
||||
```csharp
|
||||
public int GlyphCount { get; }
|
||||
```
|
||||
|
||||
Obsoleted methods:
|
||||
|
||||
```diff
|
||||
[Obsolete ("Use CountGlyphs(byte[], SKTextEncoding) instead.")]
|
||||
public int CountGlyphs (byte[] str, SKEncoding encoding);
|
||||
[Obsolete ("Use CountGlyphs(ReadOnlySpan<byte>, SKTextEncoding) instead.")]
|
||||
public int CountGlyphs (System.ReadOnlySpan<byte> str, SKEncoding encoding);
|
||||
[Obsolete ("Use CountGlyphs(string) instead.")]
|
||||
public int CountGlyphs (string str, SKEncoding encoding);
|
||||
[Obsolete ("Use CountGlyphs(ReadOnlySpan<byte>, SKTextEncoding) instead.")]
|
||||
public int CountGlyphs (IntPtr str, int strLen, SKEncoding encoding);
|
||||
[Obsolete ("Use GetGlyphs(ReadOnlySpan<byte>, SKTextEncoding) instead.")]
|
||||
public ushort[] GetGlyphs (byte[] text, SKEncoding encoding);
|
||||
[Obsolete ("Use GetGlyphs(ReadOnlySpan<byte>, SKTextEncoding) instead.")]
|
||||
public ushort[] GetGlyphs (System.ReadOnlySpan<byte> text, SKEncoding encoding);
|
||||
[Obsolete ("Use GetGlyphs(string) instead.")]
|
||||
public ushort[] GetGlyphs (string text, SKEncoding encoding);
|
||||
[Obsolete ("Use GetGlyphs(string) instead.")]
|
||||
public int GetGlyphs (string text, out ushort[] glyphs);
|
||||
[Obsolete ("Use GetGlyphs(byte[], SKTextEncoding) instead.")]
|
||||
public int GetGlyphs (byte[] text, SKEncoding encoding, out ushort[] glyphs);
|
||||
[Obsolete ("Use GetGlyphs(IntPtr, int, SKTextEncoding) instead.")]
|
||||
public ushort[] GetGlyphs (IntPtr text, int length, SKEncoding encoding);
|
||||
[Obsolete ("Use GetGlyphs(ReadOnlySpan<byte>, SKTextEncoding) instead.")]
|
||||
public int GetGlyphs (System.ReadOnlySpan<byte> text, SKEncoding encoding, out ushort[] glyphs);
|
||||
[Obsolete ("Use GetGlyphs(string) instead.")]
|
||||
public int GetGlyphs (string text, SKEncoding encoding, out ushort[] glyphs);
|
||||
[Obsolete ("Use GetGlyphs(IntPtr, int, SKTextEncoding) instead.")]
|
||||
public int GetGlyphs (IntPtr text, int length, SKEncoding encoding, out ushort[] glyphs);
|
||||
```
|
||||
|
||||
Added methods:
|
||||
|
||||
```csharp
|
||||
public bool ContainsGlyphs (System.ReadOnlySpan<char> text);
|
||||
public bool ContainsGlyphs (string text);
|
||||
public bool ContainsGlyphs (System.ReadOnlySpan<byte> text, SKTextEncoding encoding);
|
||||
public bool ContainsGlyphs (IntPtr text, int length, SKTextEncoding encoding);
|
||||
public int CountGlyphs (System.ReadOnlySpan<char> str);
|
||||
public int CountGlyphs (byte[] str, SKTextEncoding encoding);
|
||||
public int CountGlyphs (System.ReadOnlySpan<byte> str, SKTextEncoding encoding);
|
||||
public int CountGlyphs (IntPtr str, int strLen, SKTextEncoding encoding);
|
||||
public ushort[] GetGlyphs (System.ReadOnlySpan<char> text);
|
||||
public ushort[] GetGlyphs (System.ReadOnlySpan<byte> text, SKTextEncoding encoding);
|
||||
public ushort[] GetGlyphs (IntPtr text, int length, SKTextEncoding encoding);
|
||||
public int[] GetKerningPairAdjustments (System.ReadOnlySpan<ushort> glyphs);
|
||||
```
|
||||
|
||||
|
||||
#### Type Changed: SkiaSharp.SKWebpEncoderOptions
|
||||
|
||||
Added interface:
|
||||
|
@ -793,6 +941,35 @@ public static bool op_Inequality (SKWebpEncoderOptions left, SKWebpEncoderOption
|
|||
```
|
||||
|
||||
|
||||
#### Type Changed: SkiaSharp.SkiaExtensions
|
||||
|
||||
Added methods:
|
||||
|
||||
```csharp
|
||||
public static SKAlphaType GetAlphaType (this SKColorType colorType, SKAlphaType alphaType);
|
||||
public static int GetBytesPerPixel (this SKColorType colorType);
|
||||
public static SKTextEncoding ToTextEncoding (this SKEncoding encoding);
|
||||
```
|
||||
|
||||
|
||||
#### Type Changed: SkiaSharp.StringUtilities
|
||||
|
||||
Obsoleted methods:
|
||||
|
||||
```diff
|
||||
[Obsolete ("Use GetEncodedText(string, SKTextEncoding) instead.")]
|
||||
public static byte[] GetEncodedText (string text, SKEncoding encoding);
|
||||
```
|
||||
|
||||
Added methods:
|
||||
|
||||
```csharp
|
||||
public static byte[] GetEncodedText (System.ReadOnlySpan<char> text, SKTextEncoding encoding);
|
||||
public static string GetString (System.ReadOnlySpan<byte> data, SKTextEncoding encoding);
|
||||
public static string GetString (System.ReadOnlySpan<byte> data, int index, int count, SKTextEncoding encoding);
|
||||
```
|
||||
|
||||
|
||||
#### New Type: SkiaSharp.SKColorF
|
||||
|
||||
```csharp
|
||||
|
|
2
docs
2
docs
|
@ -1 +1 @@
|
|||
Subproject commit 25f56b9fdfcb9448ff5f1f148d49edeee29624de
|
||||
Subproject commit 644c51e87f1dc8abc5f0583726de29572eb75419
|
|
@ -1 +1 @@
|
|||
Subproject commit 2eb536d04142b5fb3c7ce605f8efd4f08c7e6760
|
||||
Subproject commit d3d6d76dac77e9b6929036892177261157b291b5
|
Загрузка…
Ссылка в новой задаче