Home : Annotations : Manipulating : Cannot rotate annotations where Translucent is set to true
Q10182 - INFO: Cannot rotate annotations where Translucent is set to true

In DotImage 5.0, using DotAnnotate in WinForms application, you cannot freely rotate an annotation where the Translucent property is set to true.

The workaround is to use Transparent colors instead.  You could set the colors to transparent colors (where the alpha channel is less than 255) all of the time, or handle the selection events and set it then (and set Translucent to false at the same time).

For example if you had this code:

anno.Translucent = true;
anno.Fill = new AnnotationBrush(Color.Blue);
anno.Outline = new AnnotationPen(Color.Red);

Change to this code:

anno.Translucent = false;
anno.Fill = new AnnotationBrush(Color.FromArgb(128, Color.Blue));
anno.Outline = new AnnotationPen(Color.FromArgb(128, Color.Red), 30);

It won't match the color exactly.  One thing you might try to get closer is to use slighly darker versions of the colors in your replacement code.

Related Articles
No Related Articles Available.

Article Attachments
No Attachments Available.

Related External Links
No Related Links Available.
Help us improve this article...
What did you think of this article?

poor 
1
2
3
4
5
6
7
8
9
10

 excellent
Tell us why you rated the content this way. (optional)
 
Approved Comments...
No user comments available for this article.

Powered By InstantKB.NET v1.3
Copyright © 2002, 2017. InstantASP Ltd. All Rights Reserved