locked
How to blend at image

    Question

  • Hi, Dears:

    I tried to create a project and used D2D to blend some drawing effect (ex. brush) at an image.

    I tried to used BitmapRenderTarget which could blend at bitmap. I could retrived the bitmap by calling GetBitmap, howevee, I could not get the raw data by above steps.

    I have checked the APIs and seemed no methods to do that.

    Have any suggestions about this issue?

    Thanks


    • Edited by polemel Tuesday, December 13, 2011 3:57 AM
    Tuesday, December 13, 2011 3:56 AM

All replies

  • For adding effects to an image look at the Direct2D Image Effects Photo Adjustments and Direct2D Image Effects Composite & Blend Modes samples.

    If those don't help then can you please explain what you're trying to achieve in more detail?

    --Rob

    Wednesday, December 14, 2011 3:24 AM
    Owner
  • Hi, Rob:

    We want to blend some pen, stamp effect at streaming images. Thus, we need to create a mask and add pen, stamp effect, and then retrieved the blended masked into the buffer. We could use the handled buffer to blend to the streaming images. 

    We tried to use BitmapRenderTarget and used GetBitmap to get the added effect data. However, we could not get the raw data by GetBitmap. Any ideas about that?

    Thanks

    Wednesday, December 14, 2011 7:35 AM