Click here to Skip to main content
15,903,388 members

Comments by DANIEL_PD (Top 6 by date)

DANIEL_PD 13-Oct-15 3:36am View    
The method is defined as Color.FromARGB(int alpha, int red, int green, int blue) or as Color.FromARGB(int red, int green, int blue). In addition to that my source picture is grayscale, so red=green=blue and alpha=255
DANIEL_PD 13-Oct-15 3:33am View    
Correct, I know that the one version is faster, that was what i wanted to achieve.... the problem is, that the results of both methods are different
DANIEL_PD 13-Oct-15 3:28am View    
Hello and thanks for your answer,
I hope i got your text right... The Timing is only for comparison, to check if the one version is faster than the other, it will not be in the final code...

The Problem is the difference in the result when directly accessing the bits of the image. Shouldn't the data be locked in the memory by the LockBits method?
DANIEL_PD 13-Oct-15 3:25am View    
Hello and thanks for your answer,
but the alpha value is not making a difference in my result (tried it)
DANIEL_PD 13-Oct-15 2:19am View    
Thanks for the Answer, I set the maximum to a fix value and it worked... Thank you