Error processing SSI file
(Leadtools.Annotations.Rendering)

Show in webframe

Render Method (AnnD2DThumbStyle)







The object renderer being invoked. Must not be null.
The mapper object to use for converting coordinates. Must not be null.
The center location of the thumb in container coordinates.
The fixed state of the owner object.
Renders this thumb at the specified center location.
Syntax
'Declaration
 
Public Overridable Sub Render( _
   ByVal renderer As IAnnObjectRenderer, _
   ByVal mapper As AnnContainerMapper, _
   ByVal location As LeadPointD, _
   ByVal operations As AnnFixedStateOperations _
) 
'Usage
 
Dim instance As AnnD2DThumbStyle
Dim renderer As IAnnObjectRenderer
Dim mapper As AnnContainerMapper
Dim location As LeadPointD
Dim operations As AnnFixedStateOperations
 
instance.Render(renderer, mapper, location, operations)
 function Leadtools.Annotations.Rendering.AnnD2DThumbStyle.Render( 
   renderer ,
   mapper ,
   location ,
   operations 
)

Parameters

renderer
The object renderer being invoked. Must not be null.
mapper
The mapper object to use for converting coordinates. Must not be null.
location
The center location of the thumb in container coordinates.
operations
The fixed state of the owner object.
Remarks

This method is called by the renderer from the IAnnObjectRenderer.RenderThumbs and IAnnObjectRenderer.RenderRotatePointThumbs methods. The framework will call these methods to render the selected and rotation thumbs of an object.

This AnnD2DThumbStyle performs the following during this method:

  1. Converts the center location and size into physical coordinates using mapper.PointFromContainerCoordinates and mapper.SizeFromContainerCoordinates respectively. It then creates a rectangle for the converted location and size with the origin at the location.
  2. Calls the AddPath method, passing the rectangle calculated in the above step, to allow the implementation class to draw the actual thumb shape.
  3. Finally, it uses Fill and Stroke to fill and draw the path onto the destination context (stored in renderer.RenderingEngine.
Requirements

Target Platforms

See Also

Reference

AnnD2DThumbStyle Class
AnnD2DThumbStyle Members

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