|
-
Mar 5th, 2008, 11:57 AM
#1
Thread Starter
Addicted Member
[RESOLVED] Bizarre font size problem
Have a program that was all tested out and I have not changed the code, just the images displayed. (It's still ok with the previous set of images).
All I am doing is marking those images that do not match my criteria with an "X" in one corner but for some reason this is drawing at a huge fontsize although the debugger tells me the fontsize is as expected. With a test copy to clipboard added the relevant code is:
Private scratch As New PictureBox
Private gr1 As Graphics
...
gr1 = Graphics.FromImage(scratch.Image)
gr1.DrawString("X", MainBox1.Font, Brushes.Red, pr.PicTX, pr.PicTY)
My.Computer.Clipboard.Clear()
My.Computer.Clipboard.SetImage(scratch.Image)
Debug tells me that MainBox1.Font = {Name = "Arial" Size=12.0} but when I open the clipboard my "X" is more like fontsize 70!!! I can't think of any reason, grateful for any suggestions on this.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|