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 » Thu Aug 16, 2018 7:48 am

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

Re: DropShadowEffect for WPF Annotation Views

Post by Yuri » Thu Aug 16, 2018 11:46 am

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 » Thu Aug 16, 2018 3:54 pm

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: 1570
Joined: Thu Jul 10, 2008 2:21 pm

Re: DropShadowEffect for WPF Annotation Views

Post by Alex » Mon Aug 20, 2018 2:30 pm

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 » Mon Aug 20, 2018 7:23 pm

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: 1570
Joined: Thu Jul 10, 2008 2:21 pm

Re: DropShadowEffect for WPF Annotation Views

Post by Alex » Tue Aug 21, 2018 9:22 am

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 » Fri Aug 24, 2018 4:56 pm

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