R.Wieser
2019-06-10 15:15:26 UTC
Hello all,
I'm trying to draw some text on a GdipGraphics context. Both drawing a line
and ellipsoid works fine. The problem is drawing a bit of text on it.
The preceeding GdipCreateFontFamilyFromName and GdipCreateFont seem to
function (status is Zero), even though both return the same handle value.
GdipCreateSolidFill also seems to function (status is Zero).
The rectangle contains four 32-bit floats, the left and top zero, width and
height 50.0 (also tried a few different numbers).
The string-drawing call looks as follows:
call GdipDrawString, [hGdipGraphicsContext], offset WTXT_Test, -1,
[hGdipFont], offset [rRectF], 0, [hGdipBrush]
The resulting status is 0x1, a 'Generic Error'. And I have got zero idea
why, or how to progress.
Help ?
Regards,
Rudy Wieser
I'm trying to draw some text on a GdipGraphics context. Both drawing a line
and ellipsoid works fine. The problem is drawing a bit of text on it.
The preceeding GdipCreateFontFamilyFromName and GdipCreateFont seem to
function (status is Zero), even though both return the same handle value.
GdipCreateSolidFill also seems to function (status is Zero).
The rectangle contains four 32-bit floats, the left and top zero, width and
height 50.0 (also tried a few different numbers).
The string-drawing call looks as follows:
call GdipDrawString, [hGdipGraphicsContext], offset WTXT_Test, -1,
[hGdipFont], offset [rRectF], 0, [hGdipBrush]
The resulting status is 0x1, a 'Generic Error'. And I have got zero idea
why, or how to progress.
Help ?
Regards,
Rudy Wieser