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 > IAnnThumbStyle Interface : Render Method |
void Render( IAnnObjectRenderer renderer, AnnContainerMapper mapper, LeadPointD location, AnnFixedStateOperations operations )
'Declaration
Sub Render( _ ByVal renderer As IAnnObjectRenderer, _ ByVal mapper As AnnContainerMapper, _ ByVal location As LeadPointD, _ ByVal operations As AnnFixedStateOperations _ )
void Render( IAnnObjectRenderer renderer, AnnContainerMapper mapper, LeadPointD location, AnnFixedStateOperations operations )
-(void) render:(id<LTIAnnObjectRenderer>) render mapper:(LTAnnContainerMapper*)mapper location:(LeadPointD) location operation:(LTAnnFixedStateOperations) operation;
void render(IAnnObjectRenderer renderer, AnnContainerMapper mapper, LeadPointD location, int annFixedStateOperations);
function Leadtools.Annotations.Core.IAnnThumbStyle.Render( renderer , mapper , location , operations )
This method is called by 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 IAnnThumbStyle perform the following during this method:
Converts the center location into physical coordinates using mapper.PointFromContainerCoordinates and Size into physical coordinates using mapper.SizeFromContainerCoordinates and then creates a rectangle for converted location and size (with its origin at the location).
Calls AddPath passing the rectangle calculated above to allow the implementation class to draw the actual thumb shape
Finally, uses Fill and Stroke to fill and draw the path onto the destination context (stored in renderer.RenderingEngine