-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
Hi there.
I've been unable to track down the source of this issue. It may or may not be within the FastBitmap system or not.
I have tested a few of them and they all give the same result.
Basically I encode a pixel onto a bitmap via the SetPixel method call. Retrieving the colour via the GetPixel appears to give a different result than I would have expected:
[----------------------------(19, (1572, 480))----------------------------]
Before (1) = Color [A=255, R=128, G=128, B=128]
After (1) = Color [A=255, R=128, G=129, B=127]
(x, y) = (1572,480)
After (1, written) = Color [A=255, R=128, G=129, B=127]
Before (2) = Color [A=255, R=128, G=128, B=128]
After (2) = Color [A=255, R=128, G=129, B=129]
(x, y) = (1573,480)
After (2, written) = Color [A=255, R=128, G=129, B=129]
19 = 00011111
[----------------------------(19, (1572, 480))----------------------------]
Colour (1) Original = Color [A=255, R=128, G=128, B=128]
Colour (1) Modified = Color [A=255, R=128, G=130, B=128]
Colour (2) Original = Color [A=255, R=128, G=128, B=128]
Colour (2) Modified = Color [A=255, R=127, G=128, B=129]
19 = 00200101
It's a bit hard to follow but the colours on lines 'After (1, written)' and 'Colour (1) Modified' should match, as should the colours on lines 'After (2, written)' and 'Colour (2) Modified'.
As far as I can tell there isn't anything that can intrinsically go wrong here, so I'm at a loss for what could be causing this issue to appear.
If you've got any ideas, I'd love to hear them!
Cheers.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels