This method embeds the annotation objects into a raster image.

[Visual Basic] Public Function DrawEditedObjectsToImage() As Boolean
[C#] public bool DrawEditedObjectsToImage();

Parameters

None

Return Value

Returns True if successful, otherwise returns False.

Explanation

The DrawEditedObjectsToImage method embeds the annotation objects into a raster image.

When a raster image is loaded as the base image in the ImageKit control and annotation objects have been drawn, executing the DrawEditedObjectsToImage method will rasterize the annotation objects and embed them into the base raster image. The resulting image is a raster image and can be saved using the usual ImageKit save methods. When the EmbedSelectedObjects property is True, only the selected annotation objects will be embedded. If the EmbedSelectedObjects property is False, all annotation objects will be embedded.

NOTE: After annotation objects have been embedded into the image, if the DeleteEmbeddedObjects property is True , the annotation objects will be cleared. In this case, in order to keep the annotation objects, be sure to save them to annotation file prior to embedding them. If the DeleteEmbeddedObjects property is False, the annotation objects will not be cleared after they have been embedded into the image.

This method supports only raster images. However, when a raster image is CMYK, or the image is a vector image (WMF or EMF), this method will not embed the annotation objects into the vector image. This method will be ignored and will return False, the original vector image will be displayed without the annotation objects. (Although it is possible to draw annotation objects on top of vector images, edit the annotation objects, save them to or load them from an annotation file, it is not possible to embed the annotation object into a vector image.)

See also

ImageKit.Edit Members | Newtone.ImageKit.Wpf.ImageKit

 

The ImageKit WPF is created by Newtone Corporation