From d26b9d612f7ebe40ad0c02e0141f93ab905976f5 Mon Sep 17 00:00:00 2001 From: Peter Golde Date: Sat, 19 Mar 2016 19:28:52 -0700 Subject: [PATCH] Add FilterQuality property on SKPaint --- binding/Binding/SKPaint.cs | 12 ++++++++++++ binding/Binding/SkiaApi.cs | 4 ++++ 2 files changed, 16 insertions(+) diff --git a/binding/Binding/SKPaint.cs b/binding/Binding/SKPaint.cs index 382dfc2541..b64d145c10 100644 --- a/binding/Binding/SKPaint.cs +++ b/binding/Binding/SKPaint.cs @@ -140,6 +140,18 @@ public SKXferMode XferMode { } } + public SKFilterQuality FilterQuality + { + get + { + return SkiaApi.sk_paint_get_filter_quality(Handle); + } + set + { + SkiaApi.sk_paint_set_filter_quality(Handle, value); + } + } + public SKTypeface Typeface { get { return GetObject (SkiaApi.sk_paint_get_typeface (Handle)); diff --git a/binding/Binding/SkiaApi.cs b/binding/Binding/SkiaApi.cs index 81a191dbfe..4902a3f63b 100755 --- a/binding/Binding/SkiaApi.cs +++ b/binding/Binding/SkiaApi.cs @@ -200,6 +200,10 @@ internal static class SkiaApi [DllImport(SKIA, CallingConvention = CallingConvention.Cdecl)] public extern static SKXferMode sk_paint_get_xfermode_mode(sk_paint_t t); [DllImport(SKIA, CallingConvention = CallingConvention.Cdecl)] + public extern static void sk_paint_set_filter_quality(sk_paint_t t, SKFilterQuality filterQuality); + [DllImport(SKIA, CallingConvention = CallingConvention.Cdecl)] + public extern static SKFilterQuality sk_paint_get_filter_quality(sk_paint_t t); + [DllImport(SKIA, CallingConvention = CallingConvention.Cdecl)] public extern static sk_typeface_t sk_paint_get_typeface(sk_paint_t t); [DllImport(SKIA, CallingConvention = CallingConvention.Cdecl)] public extern static void sk_paint_set_typeface(sk_paint_t t, sk_typeface_t typeface);