How to rotate page with annotations on it
Posted: Fri Jul 22, 2011 11:15 am
Hello,
I have two buttons on my form: RotateToLeftButton and RotateToRightButton.
On click of this buttons I run the code like this:
But if page contains any annotations on it these annotations are not rotated.
Could you give me example how to rotate all annotations on selected page during page rotating?
I tried to rotate them:
but they lost their positions on page.
I have two buttons on my form: RotateToLeftButton and RotateToRightButton.
On click of this buttons I run the code like this:
Code: Select all
_imageViewer.Image.Rotate(-90); //for RotateToLeftButton
_imageViewer.Image.Rotate(90); //for RotateToRightButton
Could you give me example how to rotate all annotations on selected page during page rotating?
I tried to rotate them:
Code: Select all
var annotationCollection = _imageViewer.Annotations.GetAnnotations(_imageViewer.FocusedIndex);
foreach (AnnotationBase annotationBase in annotationCollection)
{
annotationBase.Rotation = annotationBase.Rotation + 90;
}