Sign in to follow this  
Followers 0
Nothing2Lose

_GDIPlus_GraphicsDrawStringEx

1 post in this topic

Hi,

I used GraphicsDrawStringEx() udf to draw a string in my GUI but the text had a black bound. And i don't want to draw it.

$hBrush = _GDIPlus_BrushCreateSolid (0xFFFF00FF)

$hFormat = _GDIPlus_StringFormatCreate ()

$hFamily = _GDIPlus_FontFamilyCreate ("Arial")

$hFont = _GDIPlus_FontCreate ($hFamily, 12, 2)

$tLayout = _GDIPlus_RectFCreate (20, 12, 150, 75)

$aInfo = _GDIPlus_GraphicsMeasureString($hGraphic, "Checking...", $hFont, $tLayout, $hFormat)

_GDIPlus_GraphicsDrawStringEx ($hGraphic, "Checking...", $hFont, $aInfo[0], $hFormat, $hBrush)

Thanks for your help!

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0