Error processing SSI file
(Leadtools.Annotations.Core)

Show in webframe

GetImageData Method






The referenced AnnContainer.
The location and size in container on where to get the image data. This is in container coordinates.
Returns the image data at the specified location and size.
Syntax
public abstract Task<byte[]> GetImageData( 
   AnnContainer container,
   LeadRectD bounds
)
'Declaration
 
Public MustOverride Function GetImageData( _
   ByVal container As AnnContainer, _
   ByVal bounds As LeadRectD _
) As Task(Of Byte())
public abstract Task<byte[]> GetImageData( 
   AnnContainer container,
   LeadRectD bounds
)
 function Leadtools.Annotations.Core.AnnDataProvider.GetImageData( 
   container ,
   bounds 
)

Parameters

container
The referenced AnnContainer.
bounds
The location and size in container on where to get the image data. This is in container coordinates.

Return Value

A byte array that contains the image data.
Remarks

Derived classes must implement GetImageData to extract the data of the image being annotated at the specified location and size, and SetImageData to re-apply 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 scenario would be when copying the pixel data from the image then converting it to a standard format such as PNG and returning it from GetImageData.

The automation framework will call GetImageData only if the value of CanRead is true and SetImageData only when the value of CanWrite is true.

Requirements

Target Platforms

See Also

Reference

AnnDataProvider Class
AnnDataProvider Members

Error processing SSI file
   Leadtools.Annotations.Core requires a Document or Medical toolkit license and unlock key. For more information, refer to: LEADTOOLS Toolkit Features