views:

77

answers:

0

I'm using WriteableBitmap on an image of type Bgra32 to change the pixel value of certain pixels. I'm setting the value to 0x77CCCCCC.

After calling WritePixels, the pixels I set to 0x77CCCCCC show up with a value of 0x77FFFFFF.

Why does this happen? How do I make the pixels have the correct value?

UPDATE: I found out that what is happening is the R, G, and B values are getting multiplied by 255/alpha for some reason. Anyone know why?