- Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
- Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
Reply to: Bizarre font size problem in VB.net
Collapse
You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:
- You are not logged in. If you are already registered, fill in the form below to log in, or follow the "Sign Up" link to register a new account.
- You may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
- If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
Logging in...
Previously on "Bizarre font size problem in VB.net"
Collapse
-
Ta Joe, have solved it by pasting into Paint and resaving. They still look exactly the same.
-
The issue of dpi can certainly be a factor, if I'm correct in that the new ones have a higher perceived resolution.
Font sizes, as you might have discovered by now, are usually (though not always) specified in points/parts of an inch. If the image is considered to be 508 dpi then of course the font is scaled as appropriate.
Had a similar problem not too long ago with some jpegs where the EXIF data was corrupted somewhere along the way and the dpi ended up at 24000 horizontal, 600 vertical, resulting in them being displayed as one pixel lines when viewed as thumbnails.
If that's the case then you simply need to open and resave the images with the correct/adjusted dpi in Photoshop/Paintshop Pro, or if they're jpegs already and you don't want to lose quality then do a Google for an EXIF tool. Usually 96dpi is the case for MS, 72 for Macs.
Leave a comment:
-
Have asked a few questions on net and it has been suggested the internal resolution of pictures is too high. PSP reports images that work as 508 pixels/inch, ie 832x690 pixels, 1.638x1.358 inches and ones that don't as 71 pixels/inch, ie 832x690 pixels, 11.702x9.705 inches.
I really have no idea what that means as they look the same.
Leave a comment:
-
Bizarre font size problem in VB.net
Have a program that was all tested out and I have not changed the code, just the images displayed. It still works ok with the previous set of images. Marking some images with an "X" in one corner but it is drawing at a huge fontsize although the debugger tells me the fontsize is as expected. With a test copy to clipboard added just to make sure I am not doing something daft later on, 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 180!!! Drawline etc also comes out similarly enlarged. The sizemode of scratch is normal.
I can't think of any reason and can't find owt useful on net so grateful for any suggestions on this.Last edited by xoggoth; 6 March 2008, 13:57.Tags: None
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers
Contractor Services
CUK News
- All the big IR35/employment status cases of 2025: ranked Dec 23 08:55
- Why IT contractors are (understandably) fed up with recruitment agencies Today 13:57
- Contractors, don’t fall foul of HMRC’s expenses rules this Christmas party season Dec 19 09:55
- A delay to the employment status consultation isn’t why an IR35 fix looks further out of reach Dec 18 08:22
- How asking a tech jobs agency basic questions got one IT contractor withdrawn Dec 17 07:21
- Are Home Office immigration policies sacrificing IT contractors for ‘cheap labour’? Dec 16 07:48
- Will 2026 see the return of the ‘Outside IR35’ contractor? Dec 15 07:51
- Contractors, Reeves’ dividends raid is disastrous. Act, but without acceptance Dec 12 07:10
- Why JSL indemnity clauses putting umbrella contractors on the hook could be a PR disaster Dec 11 07:36
- The JSL legislation we’ll surely get just dropped. Here’s 4 ‘indelibles’ Dec 10 07:26

Leave a comment: