VintaSoft Annotation .NET Plug-in Discussions

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

Board index < VintaSoft Imaging < VintaSoft Annotation .NET Plug-in Discussions

We are migrating to new forums engine, no new registration or posting currently available. TIA for your patience.

DropShadowEffect for WPF Annotation Views



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


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


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
// 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

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


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


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


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


Page 1 from 1: 1