Article View: borland.public.cppbuilder.nativeapi
Article #10901TBitmap->Canvas
From: Robert Hoover
Date: Fri, 19 Mar 2004 20:46
Date: Fri, 19 Mar 2004 20:46
24 lines
1429 bytes
1429 bytes
I'm trying to create a devide independent bitmap using windows API. I've created a BITMAP structure and I'd like to use TextOut to write text to it. But, TextOut requires an HDC. How does Builder's VCL accomplish this with TBitmap->Canvas->TextOut()? I need my module to be compiler independent just for my own sanity. :) Here's what I've got so far.... BITMAP *bitmap; ... char text[] = "Hello"; int text_length = 5; TextOut(hdc, 0, 0, text, text_length); ... How do I link the HDC to the BITMAP? Thanks, Rob
Technical Details
Message-ID:
<405b5cb1$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.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-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,b74f22aa56d6c932,start X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-03-19 13:11:23 PST From: "Robert Hoover" <not.a.real.address@anywhere...sorry> Newsgroups: borland.public.cppbuilder.nativeapi Subject: TBitmap->Canvas Date: Fri, 19 Mar 2004 15:46:36 -0500 Lines: 26 Organization: TriTekCorp.com 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: 67.142.18.164 Message-ID: <405b5cb1$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1079729329 67.142.18.164 (19 Mar 2004 12:48:49 -0800) Path: arc1-ca.pugleaf.net!archiver1.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