Skip to content

Commit 29ffe9d

Browse files
committed
added setTextRenderingHint
1 parent cc86bf4 commit 29ffe9d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

classGDIp.ahk

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,18 @@ class GDIp
184184
return DllCall( "gdiplus\GdipSetInterpolationMode", "Ptr", This.ptr, "Int", interpolationMode )
185185
}
186186

187+
;TextRenderingHintSystemDefault = 0,
188+
;TextRenderingHintSingleBitPerPixelGridFit = 1,
189+
;TextRenderingHintSingleBitPerPixel = 2,
190+
;TextRenderingHintAntiAliasGridFit = 3,
191+
;TextRenderingHintAntiAlias = 4,
192+
;TextRenderingHintClearTypeGridFit = 5
193+
194+
setTextRenderingHint( textRenderingHint )
195+
{
196+
return DllCall( "gdiplus\GdipSetTextRenderingHint", "Ptr", This.ptr, "UInt", textRenderingHint )
197+
}
198+
187199
clear( color = 0 )
188200
{
189201
return DllCall("gdiplus\GdipGraphicsClear", "Ptr", This.ptr, "UInt", color )

0 commit comments

Comments
 (0)