I'm using the Scanline function to count pixels in a bitmap rather that use the pixels property which takes donkeys years to finish. But I'm not sure how Scanline works. The documentation in Delphi is pretty unclear as to what format the Scanline array is. So is the following code right?
colour_array=array[0..max_width-1] of longint;
byte_array=array[0..2] of byte;
with bitmap do
for py:=0 to height-1 do
for px:=0 to width-1 do
if tcolor(rgb(b^,b^,b^))=colour then
Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.