locked
Alternative to BevelBitmapEffect RRS feed

  • Question

  • Since BitmapEffects are deprecated I would like to know if there is any alternative to BevelBitmapEffect?

    I do not understand that with BitmapEffects deprecated there is only 2 Effects?
    And even in .Net 4.0 there does not seem to have been any new Effects added.
    Friday, November 6, 2009 11:37 AM

Answers

  • The short answer is that BitmapEffect support was removed in 4.0 for various reasons, and there is no good alternative.  It's better to design your vector graphics to look beveled than it is to apply an effect to them in the first place for performance reasons.  If you want to go with an effect, it's possible but not easy with the infrastructure we have in place since you'd likely need to run multiple ShaderEffect passes.

    See my reply here for more information:
    http://social.expression.microsoft.com/Forums/en-US/wpf/thread/7374c7f6-cbeb-4ce0-a81b-05ac14ddcef5

    • Proposed as answer by Brendan Clark - MSFT Friday, November 6, 2009 11:45 PM
    • Marked as answer by MEK_DK Monday, November 9, 2009 8:33 AM
    • Unmarked as answer by MEK_DK Monday, November 9, 2009 8:35 AM
    • Marked as answer by MEK_DK Monday, November 9, 2009 8:37 AM
    Friday, November 6, 2009 11:45 PM

All replies

  • The short answer is that BitmapEffect support was removed in 4.0 for various reasons, and there is no good alternative.  It's better to design your vector graphics to look beveled than it is to apply an effect to them in the first place for performance reasons.  If you want to go with an effect, it's possible but not easy with the infrastructure we have in place since you'd likely need to run multiple ShaderEffect passes.

    See my reply here for more information:
    http://social.expression.microsoft.com/Forums/en-US/wpf/thread/7374c7f6-cbeb-4ce0-a81b-05ac14ddcef5

    • Proposed as answer by Brendan Clark - MSFT Friday, November 6, 2009 11:45 PM
    • Marked as answer by MEK_DK Monday, November 9, 2009 8:33 AM
    • Unmarked as answer by MEK_DK Monday, November 9, 2009 8:35 AM
    • Marked as answer by MEK_DK Monday, November 9, 2009 8:37 AM
    Friday, November 6, 2009 11:45 PM
  • To bad that there is no alternative but thank you for the reply.

    I read in the thread you are linking to that the effect was not created because there were not enough customer requests.
    I understand that, but it seems a bit weird to put it in and let people use it (and people have used it as several threads in this forum confirms) and then pull it out again. Unless you have looked at all WPF applications that have been made it is very difficult to estimate whether or not people use this feature (of course you investigate this is different ways).

    But I will do something else and maybe the effect will be here in .Net 5 or 6 :-)

    Monday, November 9, 2009 8:32 AM