Article View: borland.public.cppbuilder.nativeapi
Article #12070Re: Lots of data
From: Bob Gonder
Date: Thu, 01 Jan 2004 20:15
Date: Thu, 01 Jan 2004 20:15
32 lines
1997 bytes
1997 bytes
M. Finch wrote:
>> These are four functioncalls for every point ?
>>
>> What I do not understand that you would create a HDC and get an
>> object for every point to be drawn. The only thing that would
>> change is the position where you would draw your small bitmap.
>
>What you are saying is to Blt one, then copy the rest? I can do that. I'll
>try it now. THANKS!!
I think Hans was trying say that you could move stuff around for
faster processing.
Instead of
for( i=0; i<160; i++)
(
HDC hdcMem = CreateCompatibleDC(NULL);
HBITMAP hbmT = SelectBitmap(hdcMem,hbm);
BITMAP bm;
GetObject(hbm,sizeof(bm),&bm);
BitBlt(hdc,0,0,bm.bmWidth,bm.bmHeight,hdcMem,0,0,SRCCOPY);
}
You could do
HDC hdcMem = CreateCompatibleDC(NULL);
HBITMAP hbmT = SelectBitmap(hdcMem,hbm);
BITMAP bm;
GetObject(hbm,sizeof(bm),&bm);
for( i=0;i<160;i++)
{
BitBlt(hdc,0,0,bm.bmWidth,bm.bmHeight,hdcMem,0,0,SRCCOPY);
}
Technical Details
Message-ID:
<mhv8vvo90c9ut0tt1i760ef8d57f4ik5np@4ax.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!in.100proofnews.com!in.100proofnews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3ff41d43$1@newsgroups.borland.com> <3ff423a7$1@newsgroups.borland.com> <3ff4538e$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,894ad098f15950e6 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-01-01 12:23:26 PST From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Lots of data Date: Thu, 01 Jan 2004 12:15:53 -0800 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <mhv8vvo90c9ut0tt1i760ef8d57f4ik5np@4ax.com> References: <3ff41d43$1@newsgroups.borland.com> <3ff423a7$1@newsgroups.borland.com> <3ff4538e$1@newsgroups.borland.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 67.31.165.212 X-Trace: newsgroups.borland.com 1072988148 67.31.165.212 (1 Jan 2004 12:15:48 -0700) Lines: 35 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!in.100proofnews.com!in.100proofnews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail