зеркало из https://github.com/mono/SkiaSharp.git
Merge branch 'master' into gpu-support
This commit is contained in:
Коммит
e0c79534cb
|
@ -130,6 +130,16 @@ namespace SkiaSharp
|
|||
{
|
||||
return (int) color;
|
||||
}
|
||||
|
||||
public static implicit operator SKColor (uint color)
|
||||
{
|
||||
return new SKColor (color);
|
||||
}
|
||||
|
||||
public static explicit operator uint (SKColor color)
|
||||
{
|
||||
return color.color;
|
||||
}
|
||||
}
|
||||
|
||||
[Flags]
|
||||
|
|
|
@ -71,14 +71,14 @@ namespace SkiaSharp
|
|||
|
||||
public static SKPathEffect Create2DLine(float width, SKMatrix matrix)
|
||||
{
|
||||
return GetObject<SKPathEffect>(SkiaApi.sk_path_effect_create_2d_line(width, matrix));
|
||||
return GetObject<SKPathEffect>(SkiaApi.sk_path_effect_create_2d_line(width, ref matrix));
|
||||
}
|
||||
|
||||
public static SKPathEffect Create2DPath(SKMatrix matrix, SKPath path)
|
||||
{
|
||||
if (path == null)
|
||||
throw new ArgumentNullException(nameof(path));
|
||||
return GetObject<SKPathEffect>(SkiaApi.sk_path_effect_create_2d_path(matrix, path.Handle));
|
||||
return GetObject<SKPathEffect>(SkiaApi.sk_path_effect_create_2d_path(ref matrix, path.Handle));
|
||||
}
|
||||
|
||||
public static SKPathEffect CreateDash(float[] intervals, float phase)
|
||||
|
|
|
@ -227,7 +227,7 @@ namespace SkiaSharp
|
|||
[DllImport(SKIA, CallingConvention = CallingConvention.Cdecl)]
|
||||
public extern static void sk_paint_set_verticaltext(sk_paint_t t, bool v);
|
||||
[DllImport(SKIA, CallingConvention = CallingConvention.Cdecl)]
|
||||
public extern static SKColor sk_paint_get_color(sk_paint_t t);
|
||||
public extern static UInt32 sk_paint_get_color(sk_paint_t t);
|
||||
[DllImport(SKIA, CallingConvention = CallingConvention.Cdecl)]
|
||||
public extern static void sk_paint_set_color(sk_paint_t t, SKColor color);
|
||||
[DllImport(SKIA, CallingConvention = CallingConvention.Cdecl)]
|
||||
|
@ -952,9 +952,9 @@ namespace SkiaSharp
|
|||
[DllImport(SKIA, CallingConvention = CallingConvention.Cdecl)]
|
||||
public extern static void sk_bitmap_erase_rect(sk_bitmap_t cbitmap, SKColor color, ref SKRectI rect);
|
||||
[DllImport(SKIA, CallingConvention = CallingConvention.Cdecl)]
|
||||
public extern static SKColor sk_bitmap_get_pixel_color(sk_bitmap_t cbitmap, int x, int y);
|
||||
public extern static UInt32 sk_bitmap_get_pixel_color(sk_bitmap_t cbitmap, int x, int y);
|
||||
[DllImport(SKIA, CallingConvention = CallingConvention.Cdecl)]
|
||||
public extern static SKColor sk_bitmap_get_index8_color(sk_bitmap_t cbitmap, int x, int y);
|
||||
public extern static UInt32 sk_bitmap_get_index8_color(sk_bitmap_t cbitmap, int x, int y);
|
||||
[DllImport(SKIA, CallingConvention = CallingConvention.Cdecl)]
|
||||
public extern static void sk_bitmap_set_pixel_color(sk_bitmap_t cbitmap, int x, int y, SKColor color);
|
||||
[DllImport(SKIA, CallingConvention = CallingConvention.Cdecl)]
|
||||
|
@ -1014,9 +1014,9 @@ namespace SkiaSharp
|
|||
[DllImport(SKIA, CallingConvention = CallingConvention.Cdecl)]
|
||||
public extern static sk_path_effect_t sk_path_effect_create_1d_path(sk_path_t path, float advance, float phase, SkPath1DPathEffectStyle style);
|
||||
[DllImport(SKIA, CallingConvention = CallingConvention.Cdecl)]
|
||||
public extern static sk_path_effect_t sk_path_effect_create_2d_line(float width, SKMatrix matrix);
|
||||
public extern static sk_path_effect_t sk_path_effect_create_2d_line(float width, ref SKMatrix matrix);
|
||||
[DllImport(SKIA, CallingConvention = CallingConvention.Cdecl)]
|
||||
public extern static sk_path_effect_t sk_path_effect_create_2d_path(SKMatrix matrix, sk_path_t path);
|
||||
public extern static sk_path_effect_t sk_path_effect_create_2d_path(ref SKMatrix matrix, sk_path_t path);
|
||||
[DllImport(SKIA, CallingConvention = CallingConvention.Cdecl)]
|
||||
public extern static sk_path_effect_t sk_path_effect_create_dash(float[] intervals, int count, float phase);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче