BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

how I can access TCanvas->Pixels quickly

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Graphics)
View previous topic :: View next topic  
Author Message
Cenk Cihan
Guest





PostPosted: Sat Nov 26, 2005 11:18 am    Post subject: how I can access TCanvas->Pixels quickly Reply with quote




Hi. I am write a floodfill function with row coherence algorithm. This
function fill Tcanvas. But it is slowly.. I use TCanvas->Pixels for Get/Set
pixels. How I can access pixels quickly.



Back to top
Simon D
Guest





PostPosted: Sat Nov 26, 2005 11:49 am    Post subject: Re: how I can access TCanvas->Pixels quickly Reply with quote



"Cenk Cihan" <cecihan (AT) superonline (DOT) com> wrote

Quote:

Hi. I am write a floodfill function with row coherence algorithm. This
function fill Tcanvas. But it is slowly.. I use TCanvas->Pixels for
Get/Set pixels. How I can access pixels quickly.

Use ScanLine

Simon.



Back to top
Michel Leunen
Guest





PostPosted: Sat Nov 26, 2005 4:21 pm    Post subject: Re: how I can access TCanvas->Pixels quickly Reply with quote



Simon D wrote:
Quote:
"Cenk Cihan" <cecihan (AT) superonline (DOT) com> wrote in message
news:4388446d (AT) newsgroups (DOT) borland.com...

Hi. I am write a floodfill function with row coherence algorithm. This
function fill Tcanvas. But it is slowly.. I use TCanvas->Pixels for
Get/Set pixels. How I can access pixels quickly.


Use ScanLine

Or create an in-memory bitmap and access its pixels using GetDIBits()
and SetDIBits(). AFAIK, its the fastest way.

Michel
--
----------------------------------------
Michel Leunen
mailto: see my homepage.
C++Builder, BCC5.5.1 Web site:
http://www.leunen.com/
----------------------------------------

Back to top
Darren Dwyer
Guest





PostPosted: Sun Nov 27, 2005 7:24 pm    Post subject: Re: how I can access TCanvas->Pixels quickly Reply with quote

you can get optimum speed using DirectX.
visit http://bcb-tools.com

- darren dwyer

"Michel Leunen" <nospam (AT) noreply (DOT) please> wrote

Quote:
Simon D wrote:
"Cenk Cihan" <cecihan (AT) superonline (DOT) com> wrote in message
news:4388446d (AT) newsgroups (DOT) borland.com...

Hi. I am write a floodfill function with row coherence algorithm. This
function fill Tcanvas. But it is slowly.. I use TCanvas->Pixels for
Get/Set pixels. How I can access pixels quickly.


Use ScanLine

Or create an in-memory bitmap and access its pixels using GetDIBits()
and SetDIBits(). AFAIK, its the fastest way.

Michel
--
----------------------------------------
Michel Leunen
mailto: see my homepage.
C++Builder, BCC5.5.1 Web site:
http://www.leunen.com/
----------------------------------------



Back to top
Darren Dwyer
Guest





PostPosted: Sun Nov 27, 2005 7:27 pm    Post subject: Re: how I can access TCanvas->Pixels quickly Reply with quote

In particular, take a look at the TDx_Draw_Library Example C Demo - Pixels
and Custom Paint Routines

- darren

"Darren Dwyer" <darrend (AT) bcb-tools (DOT) com> wrote

Quote:
you can get optimum speed using DirectX.
visit http://bcb-tools.com

- darren dwyer

"Michel Leunen" <nospam (AT) noreply (DOT) please> wrote in message
news:43888b51 (AT) newsgroups (DOT) borland.com...
Simon D wrote:
"Cenk Cihan" <cecihan (AT) superonline (DOT) com> wrote in message
news:4388446d (AT) newsgroups (DOT) borland.com...

Hi. I am write a floodfill function with row coherence algorithm. This
function fill Tcanvas. But it is slowly.. I use TCanvas->Pixels for
Get/Set pixels. How I can access pixels quickly.


Use ScanLine

Or create an in-memory bitmap and access its pixels using GetDIBits()
and SetDIBits(). AFAIK, its the fastest way.

Michel
--
----------------------------------------
Michel Leunen
mailto: see my homepage.
C++Builder, BCC5.5.1 Web site:
http://www.leunen.com/
----------------------------------------





Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Graphics) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.