Page 1 of 1

BitmapPixels

Posted: Fri Jul 24, 2009 1:23 pm
by Kjell
:?

The BitmapPixels Component doesn't work when applied to a Bitmap with a width or height less then 64 pixels.

K

Posted: Fri Jul 24, 2009 1:35 pm
by VilleK
Found the problem, I'm changing this line:

from:

Code: Select all

  for I := 0 to NOfPoints*(PixelCount div 4096) - 1 do   
to:

Code: Select all

  for I := 0 to Round(NOfPoints*(PixelCount / 4096)) - 1 do   
This will be correct right, kattle? It appears to give the right result.

Posted: Thu Jul 30, 2009 6:31 pm
by kattle87
For some reasons I never saw this post before...
I feel like it being better now :P yes it was the way I intended it to work.