LEADTOOLS WinRT (Leadtools.Annotations.Core)
LEAD Technologies, Inc

Render Method (IAnnThumbStyle)


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. WinRT support
Syntax
void Render( 
   IAnnObjectRenderer renderer,
   AnnContainerMapper mapper,
   LeadPointD location,
   AnnFixedStateOperations operations
)
function Leadtools.Annotations.Core.IAnnThumbStyle.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 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:

  1. 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).

  2. Calls AddPath passing the rectangle calculated above to allow the implementation class to draw the actual thumb shape

  3. Finally, uses Fill and Stroke to fill and draw the path onto the destination context (stored in renderer.RenderingEngine

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

IAnnThumbStyle Interface
IAnnThumbStyle Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.