weird issue for D2D RRS feed

  • Question

  • Hello,

    As I asked in Quest,

    I just spent two day to try, but I got a weird issue.

    my purpose is to implement an 'eraser', and the background color is transparent.

    First I clear the renderTarget with (0.0f, 0.0f, 0.0f, 0.0f) to make sure that the background color is transparent.

    Next drawLine with red color(255,0,0) on renderTarget.

    Then I lock the bitmap to get the pixel data.

    But the pixel values seem incorrect.

    * (pv is the dataPointer from getDataPointer)

    It shouldn't get rgbRed 120 & rgbReserved 120. the rgbRed is supposed to be 0 or 255.



    Wednesday, September 4, 2013 3:17 AM

All replies