(I thought it worked on v10.0.14)
This is what I do:
Code: Select all
ImageID = Imaging.CreateGdPictureImageFromFile( "c:\\Test.jpg" ) Imaging.SaveAsTIFF( ImageID, "c:\\Test.tiff", TiffCompressionLZW ) Viewer.DisplayFromGdPictureImage( ImageID ) Viewer.AddRectangleHighlighterAnnotInteractive( ... ) After this an annotation is added on the image and displayed in the viewer Then burn it: Viewer.BurnAnnotationsToPage( TRUE ) Viewer.SaveAnnotationsToPage( ) Now save it to disk Imaging.SaveAsTIFF( ImageID, "c:\\Test.tiff", TiffCompressionLZW )
What is wrong in my code?
- What is the difference between BurnAnnotationsToPage and SaveAnnotationsToPage ?
(I used both or just one of them, but the result is the same, no annotations saved)
- When the burn method is called, should I see this in the viewer also?
When burning it means that the annotation will be part of the image, so the image is changed and can not be unburned.
So when calling the burn method, should the annotations be burned visually in the viewer? So the annotation objects should be gone?
What are the exact steps to burn when this is my requirement->
1) Open an image from disk
2) Display in viewer
3) Add annotations
4) Burn annotations
5) Save back to disk (the same file). Also setting some actions like Bits per pixel changes, tiff file, compression settings etc
Any tip is welcome.