BitmapPixels

Found a bug? Post information about it here so we can fix it!

Moderator: Moderators

Post Reply
User avatar
Kjell
Posts: 1915
Joined: Sat Feb 23, 2008 11:15 pm

BitmapPixels

Post by Kjell »

:?

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

K
User avatar
VilleK
Site Admin
Posts: 2355
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Post 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.
kattle87
Posts: 402
Joined: Wed Sep 26, 2007 9:06 am
Location: Italy

Post 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.
In the fall of 1972 President Nixon announced that the rate of increase of inflation was decreasing. This was the first time a sitting president used the third derivative to advance his case for reelection.
-=Hugo Rossi=-
Post Reply