DropShadowEffect for WPF Annotation Views

Questions, comments and suggestions concerning VintaSoft Annotation .NET Plug-in.

Moderator: Alex

Post Reply
gpbabu
Posts: 16
Joined: Wed Dec 14, 2016 9:01 pm

DropShadowEffect for WPF Annotation Views

Post by gpbabu »

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
Yuri
Posts: 64
Joined: Wed Jul 23, 2008 2:47 pm

Re: DropShadowEffect for WPF Annotation Views

Post by Yuri »

Hello,

Provide please a snippet of your code showing how you are adding the effect.

Regards,
Yuri
gpbabu
Posts: 16
Joined: Wed Dec 14, 2016 9:01 pm

Re: DropShadowEffect for WPF Annotation Views

Post by gpbabu »

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

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),
};
Alex
Site Admin
Posts: 2303
Joined: Thu Jul 10, 2008 2:21 pm

Re: DropShadowEffect for WPF Annotation Views

Post by Alex »

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
gpbabu
Posts: 16
Joined: Wed Dec 14, 2016 9:01 pm

Re: DropShadowEffect for WPF Annotation Views

Post by gpbabu »

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
Alex
Site Admin
Posts: 2303
Joined: Thu Jul 10, 2008 2:21 pm

Re: DropShadowEffect for WPF Annotation Views

Post by Alex »

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
gpbabu
Posts: 16
Joined: Wed Dec 14, 2016 9:01 pm

Re: DropShadowEffect for WPF Annotation Views

Post by gpbabu »

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
Post Reply