Renders the specified label.
AnnLabelRenderer.prototype.renderLabel = function(
mapper,
label,
operations
)
renderLabel(
mapper: AnnContainerMapper,
label: AnnLabel,
operations: AnnFixedStateOperations
): void;
mapper
The mapper object to use for converting coordinates. Must not be null.
label
The label to render. Must not be null.
operations
The fixed state of the owner object.
This is the label renderer implementation for this platform. For more information, refer to IAnnLabelRenderer.RenderLabel.
This method is called by the framework to render the text labels of an annotation object. The following is performed by this implementation:
The values of AnnLabel.OriginalPosition is converted to physical coordinates by using mapper.AnnContainerMapper.PointFromContainerCoordinates
The size of the (AnnLabel.Text) label text is measured and clipped against the AnnRenderingEngine.ClipRectangle if the value of AnnLabel.RestrictionMode is not AnnLabelRestriction.None
Finally, the text label is rendered into the AnnRenderingEngine.Context property using the values of the AnnLabel.Font property for the text font style and size, the AnnLabel.Foreground property as the text color and the AnnLabel.Background property as the brush to fill the background of area covered by the text.
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