Article View: borland.public.cppbuilder.nativeapi
Article #12059Re: Lots of data
From: Hans Galema
Date: Thu, 01 Jan 2004 13:46
Date: Thu, 01 Jan 2004 13:46
28 lines
1927 bytes
1927 bytes
M. Finch wrote: > In drawing my test file, I have a small bitmap that I've found (120x100) to > display. I've tried Bitblt to dispay the 160 points, but it took a few > seconds to go through the 160 points in the list to display them. > 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); 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. But for me that position is obscure from your code. You could try to measure the time needed for the BitBlt() call only. What would be the time for 160 BitBlt() calls? You could have a look at CopyRect too. Hans.
Technical Details
Message-ID:
<3ff423a7$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-mailReferences:
<3ff41d43$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 06:09:16 PST Date: Thu, 01 Jan 2004 14:46:22 +0100 From: Hans Galema <dontusethis@dontusethis.nl> User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.6b) Gecko/20031208 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Lots of data References: <3ff41d43$1@newsgroups.borland.com> In-Reply-To: <3ff41d43$1@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 129.125.108.11 Message-ID: <3ff423a7$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1072964519 129.125.108.11 (1 Jan 2004 05:41:59 -0700) Lines: 28 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