DrawingContext does not support ShaderEffect.
Using DrawingContext in OnRender() method of adorner, we can Push effect using PushEffect() method. But the strange thing is that DrawingContext.PushEffect() does not support ShaderEffect. All it supports is BitmapEffect :(
So if you don't want to use BitmapEffect as it is obsolete now then you DrawingContext wouldn't be of much use to you.
http://msdn.microsoft.com/en-us/library/system.windows.media.drawingcontext.pusheffect.aspx
If you want to study about ShaderEffect, you can refer this post:
http://shujaatsiddiqi.blogspot.com/2010/08/wpf-uielements-effects.html
Sunday, August 15, 2010
DrawingContext & ShaderEffect
Labels:
Adorner effect,
BitmapEffect,
DrawingContext,
ShaderEffect
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment