Click or drag to resize

ReprojectionServiceDetermineSourceSizeByAmountOfPixels Method

Knowing the source bounding box and its aspect ratio, this helper determines an image size given the an amount of pixels that the image should contain.

Namespace:  Ptv.XServer.Controls.Map.Tools.Reprojection
Assembly:  Ptv.XServer.Controls.Map (in Ptv.XServer.Controls.Map.dll) Version: 1.7.10.0
Syntax
protected virtual Size DetermineSourceSizeByAmountOfPixels(
	IBoundingBox sourceBoundingBox,
	double nPixels
)

Parameters

sourceBoundingBox
Type: Ptv.XServer.Controls.Map.Tools.ReprojectionIBoundingBox
The source bounding box
nPixels
Type: SystemDouble
The number of pixels that the image should contain

Return Value

Type: Size
The size determined out of bounding box and number of pixels, rounded to the nearest integer.
See Also