| View previous topic :: View next topic |
| Author |
Message |
Cenk Cihan Guest
|
Posted: Sat Nov 26, 2005 11:18 am Post subject: how I can access TCanvas->Pixels quickly |
|
|
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
|
Posted: Sat Nov 26, 2005 11:49 am Post subject: Re: how I can access TCanvas->Pixels quickly |
|
|
"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
|
Posted: Sat Nov 26, 2005 4:21 pm Post subject: Re: how I can access TCanvas->Pixels quickly |
|
|
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
|
Posted: Sun Nov 27, 2005 7:24 pm Post subject: Re: how I can access TCanvas->Pixels quickly |
|
|
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
|
Posted: Sun Nov 27, 2005 7:27 pm Post subject: Re: how I can access TCanvas->Pixels quickly |
|
|
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 |
|
 |
|