R
Robe
Hi there,
How can I change the space between characters to the text we render using
GDI Plus DrawString() ??
I’m trying with the win32 API SetTextCharacterExtra() and I get the
following Exception when I try to use the Graphics object “Object is
currently in use elsewhere.â€
Here’s the declaration of the method:
[DllImport("Gdi32.dll")]
public static extern int SetTextCharacterExtra(int hdc, int nCharExtra);
Here's the way I use it
int a = SetTextCharacterExtra(formGraphics.GetHdc().ToInt32(), 8);
If there's a way to avoid SetTextCharacterExtra() will be much better.
Thank you in advance,
Robe.
How can I change the space between characters to the text we render using
GDI Plus DrawString() ??
I’m trying with the win32 API SetTextCharacterExtra() and I get the
following Exception when I try to use the Graphics object “Object is
currently in use elsewhere.â€
Here’s the declaration of the method:
[DllImport("Gdi32.dll")]
public static extern int SetTextCharacterExtra(int hdc, int nCharExtra);
Here's the way I use it
int a = SetTextCharacterExtra(formGraphics.GetHdc().ToInt32(), 8);
If there's a way to avoid SetTextCharacterExtra() will be much better.
Thank you in advance,
Robe.