wfcirilo / aforge

Automatically exported from code.google.com/p/aforge
Other
0 stars 0 forks source link

SetPixels when the original imagepixel is black don't work. (Tested with Format24bppRgb image) #321

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Open a 24bppRgb image.
2. Convert to unmanaged using the UnmanagedImage.FromManagedImage method.
3. Call the SetPixels changing the color of black pixels to something else.

What is the expected output? What do you see instead?
Is expected that the color of these pixels are changed to the new one, but the 
pixel colors are not changed. This bug only occurs when the original color is 
black.

What version of the product are you using?
2.2.4

Please provide any additional information below.
This error doest not happen when you use the SetPixel method, and this is the 
workaround I'm using at the moment.

Original issue reported on code.google.com by matheus....@gmail.com on 9 Nov 2012 at 12:15

GoogleCodeExporter commented 8 years ago
I'm sorry, I was fighting with this the last two days, but I just found that It 
was my fault.

Its not a bug, its misunderstand of the function CollectActivePixels that does 
not return the black pixels. I just looked at the aforge source and discovered 
that.

You can invalidate this. Sorry the disturb. :(

Original comment by matheus....@gmail.com on 9 Nov 2012 at 12:27

GoogleCodeExporter commented 8 years ago

Original comment by andrew.k...@gmail.com on 9 Nov 2012 at 9:25