Rotating an image that contains annotations
-
- Posts: 32
- Joined: Sun Jan 30, 2011 8:40 pm
Rotating an image that contains annotations
When I rotate an image that contains annotations, the annotations don't get rotated along with the image. I know this is possible because its working in the VB Annotations demo application, however I cannot figure out what it is doing that mine is not. Do you know what I could be doing wrong?
My code for rotating is:
If m_DocumentFormat = GdPicture.DocumentFormat.DocumentFormatJPEG Then
Viewer1.Rotate(RotateFlipType.Rotate90FlipNone)
ElseIf m_DocumentFormat = GdPicture.DocumentFormat.DocumentFormatPDF Then
m_NativePDF.RotatePage(90)
ElseIf m_DocumentFormat = GdPicture.DocumentFormat.DocumentFormatTIFF Then
m_GdPictureImaging.Rotate(m_NativeImage, RotateFlipType.Rotate90FlipNone)
End If
Viewer1.Redraw()
Thanks,
Reagan
My code for rotating is:
If m_DocumentFormat = GdPicture.DocumentFormat.DocumentFormatJPEG Then
Viewer1.Rotate(RotateFlipType.Rotate90FlipNone)
ElseIf m_DocumentFormat = GdPicture.DocumentFormat.DocumentFormatPDF Then
m_NativePDF.RotatePage(90)
ElseIf m_DocumentFormat = GdPicture.DocumentFormat.DocumentFormatTIFF Then
m_GdPictureImaging.Rotate(m_NativeImage, RotateFlipType.Rotate90FlipNone)
End If
Viewer1.Redraw()
Thanks,
Reagan
Re: Rotating an image that contains annotations
Hello,
You have to use the RotateAnnotations method.
IE:
Kind regards,
Loïc
You have to use the RotateAnnotations method.
IE:
Code: Select all
If m_DocumentFormat = GdPicture.DocumentFormat.DocumentFormatJPEG Then
Viewer1.Rotate(RotateFlipType.Rotate90FlipNone)
ElseIf m_DocumentFormat = GdPicture.DocumentFormat.DocumentFormatPDF Then
m_NativePDF.RotatePage(90)
ElseIf m_DocumentFormat = GdPicture.DocumentFormat.DocumentFormatTIFF Then
m_GdPictureImaging.Rotate(m_NativeImage, RotateFlipType.Rotate90FlipNone)
End If
Viewer1.RotateAnnotations(90)
Viewer1.Redraw()
Loïc
-
- Posts: 32
- Joined: Sun Jan 30, 2011 8:40 pm
Re: Rotating an image that contains annotations
works great. thank you.
Re: Rotating an image that contains annotations
ok perfect, thank you for the return.
Who is online
Users browsing this forum: No registered users and 1 guest