Article View: borland.public.cppbuilder.nativeapi
Article #10269Re: GetCharWidth( ) and printing
From: Remy Lebeau (TeamB)
Date: Tue, 11 May 2004 21:45
Date: Tue, 11 May 2004 21:45
18 lines
1646 bytes
1646 bytes
"LarryJ" <LarryJ33@ev1.net> wrote in message news:40a144e2@newsgroups.borland.com... > The problem occurs when I pass the printer canvas handle > the width returns as 57 and the ellipse around the text prints > too large. I am not sure why the Paintbox canvas handle and > the printer canvas handle return different results. What is the printer resolution set to? GetCharWidth() returns the number of pixels it takes to render a character on the specified canvas. Computer screens typically only use 72 pixels per inch. So fr a screen rendering, it may only take 7 pixels to render a character. Whereas on a printer set to 300+ DPI, for instance, it could take considerable more pixels to render the same character in the same inch. Gambit
Technical Details
Message-ID:
<40a14ac0$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!controlnews3.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<40a144e2@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,27194c3be69ec667 X-Google-Attributes: gid10cc67,public From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <40a144e2@newsgroups.borland.com> Subject: Re: GetCharWidth( ) and printing Date: Tue, 11 May 2004 14:45:34 -0700 Lines: 20 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 67.22.138.253 Message-ID: <40a14ac0$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1084312256 67.22.138.253 (11 May 2004 14:50:56 -0700) Path: arc1-ca.pugleaf.net!controlnews3.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail