Image Filtering Vs Pixel Shader

Jan 9, 2010 at 3:04 PM

Hello,

I saw several filter classes (e.g. Brightness or GS or etc ) in ImageTools.Filtering. Can we use HLSL (e.g. GreyScale.ps or Greyscale.fx ) instead of those filter classess? Is there any performance issue in using HLSL ??

 

Coordinator
Jan 9, 2010 at 4:58 PM
Hi Michael,

HLSL: It is very fast, especially when u have a graphic card with hardware support, but it is tricky to manipulate an image:

(1) Render the image
(2) Apply the effect
(3) Create an image of the control

So u always have to render it. I think it doesnt work, when applying a filter in non visible process.

Filter: Slower than HLSL, but its easier to use.