locked
TransparentBlt call removes unspecified colors RRS feed

  • Question

  • Hi,

    I am using IImaging to load 32bit png files. Then I am creating a 16bit DIB and selecting it into a memory DC. Now I use Image::Draw to draw the loaded 32bit PNG into the memory DC where the 16bit DIB is selected. Then I am calling TransparentBlt call to remove RGB(0,0,0) color.

    The issue is that after calling the TransparentBlt call, along with color RGB(0,0,0), colors such as RGB(4,0,0) is also getting removed after the TransparentBlt call. Can someone explain me as to why this is happening. As per the documentation only RGB(0,0,0) needs to get removed while blitting, but in my case RGB(4,0,0) is also getting removed.

    Can someone impart some light onto this issue. If anything more needs to be done other than just IImage::Draw and transparentblt, then please let me know.

    Thank you,
    CED

    • Edited by C.E.D Monday, April 12, 2010 7:00 PM Changed to appropriate subject
    Monday, April 12, 2010 6:59 PM

All replies

  • Hi,

    Has anyone not faced such an issue in Windows Mobile with TransparentBlt call. If so, then please let me know.

    Thank you,
    CED

    Friday, April 16, 2010 4:53 AM