Exemplo n.º 1
0
 /// <summary>
 /// Colourises the display set description annotation item in the specified image
 /// </summary>
 private static void ColorizeDisplaySetDescription(IPresentationImage image, Color color)
 {
     if (image is IAnnotationLayoutProvider)
     {
         IAnnotationLayoutProvider provider = (IAnnotationLayoutProvider)image;
         foreach (AnnotationBox annotationBox in provider.AnnotationLayout.AnnotationBoxes)
         {
             if (annotationBox.AnnotationItem != null && annotationBox.AnnotationItem.GetIdentifier() == "Presentation.DisplaySetDescription")
             {
                 annotationBox.Color = color.Name;
             }
         }
     }
 }
		public TextOverlayVisibilityHelper(IAnnotationLayoutProvider annotationLayoutProvider)
			: this(annotationLayoutProvider == null ? null : annotationLayoutProvider.AnnotationLayout)
		{
		}
Exemplo n.º 3
0
 public TextOverlayVisibilityHelper(IAnnotationLayoutProvider annotationLayoutProvider)
     : this(annotationLayoutProvider == null ? null : annotationLayoutProvider.AnnotationLayout)
 {
 }