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
)
Protected Overridable Function DetermineSourceSizeByAmountOfPixels (
sourceBoundingBox As IBoundingBox,
nPixels As Double
) As Size
protected:
virtual Size DetermineSourceSizeByAmountOfPixels(
IBoundingBox^ sourceBoundingBox,
double nPixels
)
abstract DetermineSourceSizeByAmountOfPixels :
sourceBoundingBox : IBoundingBox *
nPixels : float -> Size
override DetermineSourceSizeByAmountOfPixels :
sourceBoundingBox : IBoundingBox *
nPixels : float -> Size
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:
SizeThe size determined out of bounding box and number of pixels, rounded to the nearest integer.
See Also