Can anyone tell me how to pass a bitmap resource id? I'm getting crazy errors and I'm not sure why. Trying to convert a 16-bit bitmap to 256 colors...