๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #10924

Re: TBitmap->Canvas

#10924
From: Kake
Date: Mon, 22 Mar 2004 06:56
34 lines
1626 bytes
"Robert Hoover" <not.a.real.address@anywhere...sorry> kirjoitti viestiss๏ฟฝ
news:405b5cb1$1@newsgroups.borland.com...
> 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
>

See TBitmap->Canvas->Handle.

- KaKe -
Technical Details
Message-ID: <405e8dff$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <405b5cb1$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10cc67,b74f22aa56d6c932
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-03-21 23:06:54 PST
From: "Kake" <kai.kamarainen@NOSPAM.ouman.fi>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <405b5cb1$1@newsgroups.borland.com>
Subject: Re: TBitmap->Canvas
Date: Mon, 22 Mar 2004 08:56:55 +0200
Lines: 36
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: 192.107.216.66
Message-ID: <405e8dff$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1079938559 192.107.216.66 (21 Mar 2004 22:55:59 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail