Returns the image data at the specified location and size.
getImageData(
container: AnnContainer,
bounds: LeadRectD
): number[];
container
The reference AnnContainer.
bounds
The location and size in container on where to get the image data. This is in container coordinates.
A byte array that contains the image 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.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document