Annotations are not burned

Discussions about annotation support.
Post Reply
User avatar
AgfaDev
Posts: 29
Joined: Thu Sep 12, 2013 7:48 am

Annotations are not burned

Post by AgfaDev » Thu Nov 14, 2013 11:21 am

I'm using v10.1

(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 )
When I open the saved tiff image, the annotations are not there !

What is wrong in my code?

Some questions:

- 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.

User avatar
AgfaDev
Posts: 29
Joined: Thu Sep 12, 2013 7:48 am

Re: Annotations are not burned

Post by AgfaDev » Thu Nov 14, 2013 12:38 pm

Yes, I see the new update 10.1.2 and have tested it.
The issue is solved. The annotations are burned, seen also in viewer as burned and also burned on the file on disk.

Thanks for this update.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests