|
发表于 2019-8-10 12:26:15
|
显示全部楼层
请教圆圈字是如何形成?
用:
Local $sString = ""AU3论坛VIP认证专用章"", $aInfo
$hGraphic = _GDIPlus_GraphicsCreateFromHWND($hGUI)
$hBrush = _GDIPlus_BrushCreateSolid(0xFFff0000);0xFF00007F)
$hFormat = _GDIPlus_StringFormatCreate()
$hFamily = _GDIPlus_FontFamilyCreate("黑体");"Arial")
$hFont = _GDIPlus_FontCreate($hFamily,26,1 ,2)
$tLayout = _GDIPlus_RectFCreate(5, 150, 0, 0)
$aInfo = _GDIPlus_GraphicsMeasureString($hGraphics, $sString, $hFont, $tLayout, $hFormat)
_GDIPlus_GraphicsDrawStringEx($hGraphics, $sString, $hFont, $aInfo[0], $hFormat, $hBrush)
上面显示的是横行
如何计算:$tLayout = _GDIPlus_RectFCreate(5, 150, 0, 0) |
|