PageTransformRegion Method (SearchResultRegion, Int32, Int32, RenderingSettings)

Apitron PDF Rasterizer help
Apitron.PDF.Rasterizer library for .NET
Transforms the region specified in original page space, to transformed page space using the RenderingSettings given for rendering. This method can be used for SearchResultItem mapping to rendered page.

Namespace:  Apitron.PDF.Rasterizer
Assembly:  Apitron.PDF.Rasterizer (in Apitron.PDF.Rasterizer.dll) Version: 3.0.154.0 (3.0.154.0)
Syntax

public SearchResultRegion TransformRegion(
	SearchResultRegion region,
	int desiredWidth,
	int desiredHeight,
	RenderingSettings settings
)

Parameters

region
Type: Apitron.PDF.Rasterizer.SearchSearchResultRegion
The region to transform.
desiredWidth
Type: SystemInt32
Width of the page to map this region into.
desiredHeight
Type: SystemInt32
Height of the page to map this region into.
settings
Type: Apitron.PDF.Rasterizer.ConfigurationRenderingSettings
The settings used for rendering, you should use the same settings to get a correct mapping between original page and transformed page. If for example, you render the page double-sized and want to map a region from original page to this new image, you would need to pass the same settings in order to get correct results.

Return Value

Type: SearchResultRegion
Transformed region.
See Also

Reference