Skip to content

Commit

Permalink
Merge branch 'pr/49'
Browse files Browse the repository at this point in the history
closes #49
bholmes committed Apr 8, 2016
2 parents 54841df + e79ef68 commit 0433706
Showing 4 changed files with 37 additions and 1 deletion.
12 changes: 12 additions & 0 deletions binding/Binding/SKPaint.cs
Original file line number Diff line number Diff line change
@@ -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<SKTypeface> (SkiaApi.sk_paint_get_typeface (Handle));
4 changes: 4 additions & 0 deletions binding/Binding/SkiaApi.cs
Original file line number Diff line number Diff line change
@@ -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);
20 changes: 20 additions & 0 deletions docs/en/SkiaSharp/SKPaint.xml
Original file line number Diff line number Diff line change
@@ -174,6 +174,26 @@
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="FilterQuality">
<MemberSignature Language="C#" Value="public SkiaSharp.SKFilterQuality FilterQuality { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype SkiaSharp.SKFilterQuality FilterQuality" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.49.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>SkiaSharp.SKFilterQuality</ReturnType>
</ReturnValue>
<Docs>
<summary>
<para>The <see cref="T:SkiaSharp.SKFilterQuality" /> of the current paint. This affects the quality (and performance) of drawing scaled images.</para>
</summary>
<value>The <see cref="T:SkiaSharp.SKFilterQuality" /> of the current paint.</value>
<remarks>
<para></para>
</remarks>
</Docs>
</Member>
<Member MemberName="FontMetrics">
<MemberSignature Language="C#" Value="public SkiaSharp.SKFontMetrics FontMetrics { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype SkiaSharp.SKFontMetrics FontMetrics" />
2 changes: 1 addition & 1 deletion skia

0 comments on commit 0433706

Please sign in to comment.