Translating Coordinates for a Region - Namespace - Raster, Medical, Document Help

Translating Coordinates for a Region

Several of the LEADTOOLS methods and classes for creating and working with a region use coordinates from an external representation of the region, such as a shape drawn in a device context.

To compensate for possible differences in view perspective, scaling, and display offsets, these LEADTOOLS methods or classes require that you provide translation information in a RasterRegionXForm class. (For details on how information is translated, refer to the structure description.)

In most cases, the external representation of a region is scaled and positioned relative to the display coordinates of a LEADTOOLS painting method. Therefore, the following table describes the fields to set in the RasterRegionXForm class, based on the parameters of the Paint method:

All region methods accept a NULL pointer for this structure. In that case, no transformation occurs. The scalar fields default to 1, the offsets default to 0, and the view perspective defaults to the image's view perspective.

Related topics:

Help Version 20.0.2018.8.13
Products | Support | Contact Us | Copyright Notices
© 1991-2018 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Imaging, Medical, and Document