Derp, accidently it
Ok, so when I make some text with GDIplus, it attempts to make it look better by adding hue to the right / left sides of letters. example:
![Posted Image]()
The top "this" is the rendered text, the bottom one is the same with the pixels magnified 600%
I do not want it to do this! Please help
Ok, so when I make some text with GDIplus, it attempts to make it look better by adding hue to the right / left sides of letters. example:
![Posted Image](http://img812.imageshack.us/img812/9276/testah.png)
The top "this" is the rendered text, the bottom one is the same with the pixels magnified 600%
I do not want it to do this! Please help
#include <GUIConstantsEx.au3> #include <GDIPlus.au3> _Main() Func _Main() Local $hGUI, $hGraphic, $hBrush, $hFormat, $hFamily, $hFont, $tLayout Local $sString = "This is a string", $aInfo ; Create GUI $hGUI = GUICreate("GDI+", 150, 60) ; Draw a string _GDIPlus_Startup() $hGraphic = _GDIPlus_GraphicsCreateFromHWND($hGUI) $hBitmap = _GDIPlus_BitmapCreateFromGraphics(150,60,$hGraphic) $hContext = _GDIPlus_ImageGetGraphicsContext($hBitmap) $hBrush = _GDIPlus_BrushCreateSolid(0xFF000000) $hBrush2 = _GDIPlus_BrushCreateSolid(0xFFFFFFFF) $hFormat = _GDIPlus_StringFormatCreate() $hFamily = _GDIPlus_FontFamilyCreate("Arial") $hFont = _GDIPlus_FontCreate($hFamily, 12, 1) $tLayout = _GDIPlus_RectFCreate(15, 15, 150, 30) _GDIPlus_GraphicsFillRect($hContext,0,0,150,60,$hBrush2) _GDIPlus_GraphicsDrawStringEx($hContext, $sString, $hFont, $tLayout, $hFormat, $hBrush) _GDIPlus_ImageSaveToFile($hBitmap,"This is an image.png") ShellExecute("This is an image.png") ; Clean up resources _GDIPlus_FontDispose($hFont) _GDIPlus_FontFamilyDispose($hFamily) _GDIPlus_StringFormatDispose($hFormat) _GDIPlus_BrushDispose($hBrush) _GDIPlus_BrushDispose($hBrush2) _GDIPlus_BitmapDispose($hBitmap) _GDIPlus_GraphicsDispose($hGraphic) _GDIPlus_Shutdown() EndFunc ;==>_Main