Need to implement Image processing effects like Blur, Clip, Superimpose, Pinch Zoom in WinRT API. My approach has always been getting pixels from WritableBitmap Image object and apply changes on that. But as i can find in WinRT WritableBitmap don't provide any way to access individual level pixels. Other way suggested by people are to implement direct X and then apply using that. But for that I need to do coding using C++ about which i have zero experience.
Can anyone suggest some other way to do the same thing in C# WinRT api?
"But as i can find in WinRT WritableBitmap don't provide any way to access individual level pixels."
WritableBitmap provides the PixelBuffer property http://msdn.microsoft.com/en-us/library/windows/apps/xaml/windows.ui.xaml.media.imaging.writeablebitmap.pixelbuffer that we could get all pixels into one IBuffer. Then you could handle the individual level pixels in this buffer.
Other way, I think DX Pixel Shader can help you, but it is out of C# scope, you could refer to these resources: http://msdn.microsoft.com/en-us/library/windows/desktop/bb509635(v=vs.85).aspx
Bob Bao [MSFT]
MSDN Community Support | Feedback to us
- 已标记为答案 john厦门 2012年5月3日 8:22