Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.4.6
|
Leadtools.Annotations.Core Namespace > AnnDataProvider Class : SetImageData Method |
'Declaration
Public MustOverride Sub SetImageData( _ ByVal container As AnnContainer, _ ByVal bounds As LeadRectD, _ ByVal data() As Byte _ )
public abstract void setImageData(AnnContainer container, LeadRectD bounds, byte[] data)
Derived classes must implement GetImageData to extract the data of the image being annotated at the specified location and size and SetImageData to reapply this same data to the image.
The data is application specific since it will only be stored as is inside the caller annotation object (for example, AnnRedactionObject during realize/restore). The format of the data and how it is obtained or applied is hidden from the annotations framework. A typical would be to copy the pixel data from the image then convert it to a standard format such as PNG and return it from GetImageData.
The automation framework will call GetImageData only if the value of CanRead is true and SetImageData only if the value of CanWrite is true.