locked
The problem about convolveeffect with edge detection kernel.

    Question

  • Dear all :

    I had try to used convolve effect to simulate the edge detection.

    The kernel is : {-1,-1,-1,-1,8,-1,-1,-1,-1}

    It can get a perfect edge result with this kernel. But has a problem.

    The non-edge area(pixel) can not be black, it means the non-edge pixel is transparent.

    Then when I try to use other effect such as lineartransfer effect, I will get the nothing on the screen.

    I had try to set the convolve effect with SetValue(D2D1_CONVOLVEMATRIX_PROP_PRESERVE_ALPHA,true) property, but it still not working.

    The original source is GUID_WICPixelFormat32bppPBGRA format.

    Is there any solution? Thanks.


    風胤

    Tuesday, June 04, 2013 3:25 AM