C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Resources » Code Snippets » Application windows, menus & toolbars »

Image 2D Reflection in WPF


Posted Date: 13 Aug 2009    Resource Type: Code Snippets    Category: Application windows, menus & toolbars
Author: K'ranMember Level: Gold    
Rating: 1 out of 5Points: 10



Image 2D Relection in WPF



WPF support Rich Graphical Support of 2D and 3D Graphics



Below Code Snippets demonates Mirror Reflection of Image in WPF




< Window x:Class="ImageReflection.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1" Height="600" Width="850" Background="Black" >


< StackPanel >

< Border Width="210" Height="200" >
< Border.BitmapEffect >

< DropShadowBitmapEffect Color="Black" Direction="20" ShadowDepth="25" Opacity="0.5" >< /DropShadowBitmapEffect >
< /Border.BitmapEffect >
< Border.RenderTransform >
< SkewTransform CenterX="0" CenterY="0" AngleX="0" AngleY="10" >< /SkewTransform >
< /Border.RenderTransform >

< Border Width="200" Height="200" >
< Border.Background >

< VisualBrush Visual="{Binding ElementName=image1}" >
< VisualBrush.Transform >

< ScaleTransform ScaleX="-1" ScaleY="-1" CenterX="100" CenterY="100" >< /ScaleTransform >
< /VisualBrush.Transform >
< /VisualBrush >
< /Border.Background >
< Border.OpacityMask >
< LinearGradientBrush StartPoint="0,0" EndPoint="0,1" >
< GradientStop Offset="0" Color="Black" >< /GradientStop >
< GradientStop Offset="0.8" Color="Transparent" >< /GradientStop >
< /LinearGradientBrush >
< /Border.OpacityMask >
< /Border >
< /StackPanel >


Note:-Please Set your image property Build Action Property is Content and Copy to Output Directory=Copy Always



See Sample Application in attachment



Attachments

  • WPF Image Mirror Reflection Code (31344-13935-ImageReflection.rar)


  • Responses


    No responses found. Be the first to respond and make money from revenue sharing program.

    Feedbacks      
    Popular Tags   What are tags ?   Search Tags  
    Sign In to add tags.
    Image 2D Reflection in WPF  .  

    Post Feedback


    This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
    You must Sign In to post a response.
    Next Resource: WPF Button ToolTips
    Previous Resource: Playing Videos in WPF
    Return to Discussion Resource Index
    Post New Resource
    Category: Application windows, menus & toolbars


    Post resources and earn money!
     
    More Resources



    dotNet Slackers

    About Us    Contact Us    Privacy Policy    Terms Of Use