Skip to content

Commit

Permalink
Adding IsDither to SKPaint.
Browse files Browse the repository at this point in the history
closes #28
  • Loading branch information
bholmes committed Apr 8, 2016
1 parent 613367d commit 9df2601
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 4 deletions.
9 changes: 9 additions & 0 deletions binding/Binding/SKPaint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,15 @@ public bool IsAntialias {
}
}

public bool IsDither {
get {
return SkiaApi.sk_paint_is_dither (Handle);
}
set {
SkiaApi.sk_paint_set_dither (Handle, value);
}
}

public bool IsVerticalText {
get {
return SkiaApi.sk_paint_is_verticaltext (Handle);
Expand Down
4 changes: 4 additions & 0 deletions binding/Binding/SkiaApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@ internal static class SkiaApi
[DllImport(SKIA, CallingConvention = CallingConvention.Cdecl)]
public extern static void sk_paint_set_antialias(sk_paint_t t, bool v);
[DllImport(SKIA, CallingConvention = CallingConvention.Cdecl)]
public extern static bool sk_paint_is_dither(sk_paint_t t);
[DllImport(SKIA, CallingConvention = CallingConvention.Cdecl)]
public extern static void sk_paint_set_dither(sk_paint_t t, bool v);
[DllImport(SKIA, CallingConvention = CallingConvention.Cdecl)]
public extern static bool sk_paint_is_verticaltext(sk_paint_t t);
[DllImport(SKIA, CallingConvention = CallingConvention.Cdecl)]
public extern static void sk_paint_set_verticaltext(sk_paint_t t, bool v);
Expand Down
22 changes: 19 additions & 3 deletions docs/en/SkiaSharp/SKPaint.xml
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,22 @@
<remarks>If this property is <see langword="true" />, the paint smooths out the edges of what is being drawn, but is has no impact on the interior of the shape. </remarks>
</Docs>
</Member>
<Member MemberName="IsDither">
<MemberSignature Language="C#" Value="public bool IsDither { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool IsDither" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.49.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Controls dither in the SKPaint.</summary>
<value>The current setting for the dither setting.</value>
<remarks>If this property is set true, the flags of the paint will be set to enable dithering.</remarks>
</Docs>
</Member>
<Member MemberName="IsStroke">
<MemberSignature Language="C#" Value="public bool IsStroke { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool IsStroke" />
Expand All @@ -363,9 +379,9 @@
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
<summary>Controls stroke in the SKPaint.</summary>
<value>The current setting for the stroke setting.</value>
<remarks>If this property is set true, the style of the paint will be set to stroke paths instead of filling.</remarks>
</Docs>
</Member>
<Member MemberName="IsVerticalText">
Expand Down
2 changes: 1 addition & 1 deletion skia

0 comments on commit 9df2601

Please sign in to comment.