Article View: borland.public.cppbuilder.nativeapi
Article #16920Screen unit convert
From: Sky
Date: Mon, 21 Apr 2003 01:31
Date: Mon, 21 Apr 2003 01:31
14 lines
1392 bytes
1392 bytes
hi all, I want draw a bitmap on the form,
Graphics::TBitmap *bmp = new Graphics::TBitmap();
bmp->LoadFromFile("C:\\temp.bmp");
bmp->Width = 320; bmp->Height = 240;
Canvas->Draw(0,0,bmp);
delete bmp;
My Question is: Can i convert the size to metric.
I want set the width of bmp 10cm,
does anyone can tell me how to do it?
at the same time i want print it with 10cm on paper.
TIA
Sky
Technical Details
Message-ID:
<3ea349fc$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!216.166.71.118.MISMATCH!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,2dd5cea066b7e2a3,start X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-04-20 18:36:06 PST Reply-To: "Sky" <akeehuang@163.net> From: "Sky" <akeehuang@163.net> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Screen unit convert Date: Mon, 21 Apr 2003 09:31:18 +0800 Lines: 16 Organization: Motic X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 218.104.133.50 Message-ID: <3ea349fc$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1050888700 218.104.133.50 (20 Apr 2003 18:31:40 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!216.166.71.118.MISMATCH!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail