Hello,
We are using DropShadowEffect for Wpf annotation views (WpfAnnotationView). All effects are visible in the annotation viewer. Is there anyway to burn annotations with DropShadowEffect onto image?
Thanks
Babu
DropShadowEffect for WPF Annotation Views
Moderator: Alex
-
- Posts: 64
- Joined: Wed Jul 23, 2008 2:47 pm
Re: DropShadowEffect for WPF Annotation Views
Hello,
Provide please a snippet of your code showing how you are adding the effect.
Regards,
Yuri
Provide please a snippet of your code showing how you are adding the effect.
Regards,
Yuri
-
- Posts: 16
- Joined: Wed Dec 14, 2016 9:01 pm
Re: DropShadowEffect for WPF Annotation Views
Hello Yuri,
Please see the code. In Annotation viewer, annotation displays properly with a shadow. However, when it is burnt, it does not include the effect.
Thanks
Babu
Please see the code. In Annotation viewer, annotation displays properly with a shadow. However, when it is burnt, it does not include the effect.
Thanks
Babu
Code: Select all
// Set dropshadow effect for the annotation view.
rectangleAnnotationView.Effect = new DropShadowEffect
{
ShadowDepth = 1,
BlurRadius = 5,
Direction = 270,
Color = Color.FromArgb(255, 204, 204, 204),
};
-
- Site Admin
- Posts: 2397
- Joined: Thu Jul 10, 2008 2:21 pm
Re: DropShadowEffect for WPF Annotation Views
Hello Babu,
Please try to use the RectangleAnnotationData.ShadowBrush property:
https://www.vintasoft.com/docs/vsimagin ... Brush.html
and let me know if you will have any question or problem.
Best regards, Alexander
Please try to use the RectangleAnnotationData.ShadowBrush property:
https://www.vintasoft.com/docs/vsimagin ... Brush.html
and let me know if you will have any question or problem.
Best regards, Alexander
-
- Posts: 16
- Joined: Wed Dec 14, 2016 9:01 pm
Re: DropShadowEffect for WPF Annotation Views
Hi Alex,
We tried it. Rectangle with transparent fill color causes background shadow cover the fill area instead of showing the shadow for the outline. Also, it does not have a blur effect and only shows hard shadows. You may want to consider supporting in the product as it provides rich feature set for Vintasoft WPF controls.
Thanks
Babu
We tried it. Rectangle with transparent fill color causes background shadow cover the fill area instead of showing the shadow for the outline. Also, it does not have a blur effect and only shows hard shadows. You may want to consider supporting in the product as it provides rich feature set for Vintasoft WPF controls.
Thanks
Babu
-
- Site Admin
- Posts: 2397
- Joined: Thu Jul 10, 2008 2:21 pm
Re: DropShadowEffect for WPF Annotation Views
Hi Babu,
Please send us (to support@vintasoft.com) a simple working project, which shows the shadow effect you want to have. We will analyze your code and will try to provide you the best solution for your task.
Best regards, Alexander
Please send us (to support@vintasoft.com) a simple working project, which shows the shadow effect you want to have. We will analyze your code and will try to provide you the best solution for your task.
Best regards, Alexander
-
- Posts: 16
- Joined: Wed Dec 14, 2016 9:01 pm
Re: DropShadowEffect for WPF Annotation Views
Thanks Alex. We found an approach to burn annotations with effects by setting drawing visual effect to annotation view effect. It works very well. We could get all WPF effects into exported image.
Regards
Babu
Regards
Babu