Emboss effect  
Author Message
Kirill Tropin





PostPosted: Windows Presentation Foundation (WPF), Emboss effect Top

Can anybody help me with EmbossBitmapEffect

After export XAML from GD some Paths with embossing convert to png, and emboss live many Paths.

"In XAML" I found EmbossBitmapEffect but can create cool emboosing :((

Can you give me some samples of EmbossBitmapEffect

Thx



Visual Studio 200837  
 
 
Rahul Patil





PostPosted: Windows Presentation Foundation (WPF), Emboss effect Top

Effects (like emboss) can be applied to any UIElement.

<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:sys="clr-namespace:System;assembly=mscorlib" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" >
<WrapPanel>
<Image Source="earth.bmp" Margin="20">
<Image.BitmapEffect>
<EmbossBitmapEffect/>
</Image.BitmapEffect>
</Image>

<TextBox FontSize="50">
This is a cool effect
<TextBox.BitmapEffect>
<EmbossBitmapEffect/>
</TextBox.BitmapEffect>
</TextBox>
</WrapPanel>
</Page>

Let me know if you have further questions.

Thanks!


 
 
Kirill Tropin





PostPosted: Windows Presentation Foundation (WPF), Emboss effect Top

your code didn't give me what I want :)

With GD I can create pictures like that http://thespoke.net/photos/kill/images/947711/original.aspx

Can I create the same "3D" pictures with XAML

If I apply emboss to Paths I get very interesting picture, but not what I want (not "3D")  :)

I know all what you wrote :)


 
 
Tim Cools





PostPosted: Windows Presentation Foundation (WPF), Emboss effect Top

Maybe a little late, but for the reference.

I think the BevelBitmapEffects is what you looking for. I only wished that it was also possible to create the bevel on the outside of the path... Maybe i write something like that myself, if i have time and it is not to difficle....

Best regards,

Tim