Page 1 of 1

DropShadowEffect for WPF Annotation Views

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

Re: DropShadowEffect for WPF Annotation Views

Posted: Thu Aug 16, 2018 11:46 am
by Yuri
Hello,

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

Regards,
Yuri

Re: DropShadowEffect for WPF Annotation Views

Posted: Thu Aug 16, 2018 3:54 pm
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),
};

Re: DropShadowEffect for WPF Annotation Views

Posted: Mon Aug 20, 2018 2:30 pm
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

Re: DropShadowEffect for WPF Annotation Views

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

Re: DropShadowEffect for WPF Annotation Views

Posted: Tue Aug 21, 2018 9:22 am
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

Re: DropShadowEffect for WPF Annotation Views

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