User Tools

Site Tools


thinkgeo.mapsuite.core.extenthelper

This is an old revision of the document!


ThinkGeo.MapSuite.Core.ExtentHelper

This static class exposes a number of helpful methods when dealing with extents.

Inheritance Hierarchy

  • System.Object
    • ThinkGeo.MapSuite.Core.ExtentHelper

Members Summary

Public Constructors

Protected Constructors

Public Methods

CenterAt

  • Parameters:RectangleShape,PointShape,Single,Single
  • DeclaringType:N/A
  • Summary:This is a static function that allows you to pass in a world rectangle, a world point to center on, and a height and width in screen units. The function will center the rectangle based on the point, then adjust the rectangle's ratio based on the height and width in screen coordinates.

CenterAt

  • Parameters:RectangleShape,Feature,Single,Single
  • DeclaringType:N/A
  • Summary:This is a static function that allows you to pass in a world rectangle, a world point to center on, and a height and width in screen units. The function will center the rectangle based on the point, then adjust the rectangle's ratio based on the height and width in screen coordinates.

CenterAt

  • Parameters:RectangleShape,Single,Single,Single,Single
  • DeclaringType:N/A
  • Summary:This method returns an adjusted extent centered on a point.

Equals

  • Parameters:Object
  • DeclaringType:Object
  • Summary:N/A

GetBoundingBoxOfItems

  • Parameters:IEnumerable<Feature>
  • DeclaringType:N/A
  • Summary:This API gets the BoundingBox of a group of Features.

GetBoundingBoxOfItems

  • Parameters:IEnumerable<BaseShape>
  • DeclaringType:N/A
  • Summary:This API gets the BoundingBox of a group of BaseShapes.

GetDrawingExtent

  • Parameters:RectangleShape,Single,Single
  • DeclaringType:N/A
  • Summary:This method returns an adjusted extent based on the ratio of the screen width and height.

GetHashCode

  • Parameters:N/A
  • DeclaringType:Object
  • Summary:N/A

GetScale

GetScale

GetScreenDistanceBetweenTwoWorldPoints

GetScreenDistanceBetweenTwoWorldPoints

  • Parameters:RectangleShape,Feature,Feature,Single,Single
  • DeclaringType:N/A
  • Summary:This method returns the number of pixels between two features.

GetType

  • Parameters:N/A
  • DeclaringType:Object
  • Summary:N/A

GetWorldDistanceBetweenTwoScreenPoints

  • Parameters:RectangleShape,Single,Single,Single,Single,Single,Single,GeographyUnit,DistanceUnit
  • DeclaringType:N/A
  • Summary:This method returns the distance in world units between two screen points.

GetWorldDistanceBetweenTwoScreenPoints

Pan

Pan

  • Parameters:RectangleShape,Single,Int32
  • DeclaringType:N/A
  • Summary:This method returns a panned extent.

ResizeExtent

SnapToZoomLevel

ToScreenCoordinate

  • Parameters:RectangleShape,Feature,Single,Single
  • DeclaringType:N/A
  • Summary:This method returns screen coordinates from world coordinates.

ToScreenCoordinate

  • Parameters:RectangleShape,PointShape,Single,Single
  • DeclaringType:N/A
  • Summary:This method returns screen coordinates from world coordinates.

ToScreenCoordinate

  • Parameters:RectangleShape,RectangleShape,Single,Single
  • DeclaringType:N/A
  • Summary:This method returns Rectangle in screen coordinates from RectangleShape in world coordinates.

ToScreenCoordinate

  • Parameters:RectangleShape,Double,Double,Single,Single
  • DeclaringType:N/A
  • Summary:This method returns screen coordinates from world coordinates.

ToString

  • Parameters:N/A
  • DeclaringType:Object
  • Summary:N/A

ToWorldCoordinate

  • Parameters:RectangleShape,Single,Single,Single,Single
  • DeclaringType:N/A
  • Summary:This method returns world coordinates from screen coordinates.

ToWorldCoordinate

  • Parameters:RectangleShape,ScreenPointF,Single,Single
  • DeclaringType:N/A
  • Summary:This method returns world coordinates from screen coordinates.

ZoomIn

  • Parameters:RectangleShape,Int32
  • DeclaringType:N/A
  • Summary:This method returns a new extent that is zoomed in by the percentage provided.

ZoomIntoCenter

  • Parameters:RectangleShape,Int32,Single,Single,Single,Single
  • DeclaringType:N/A
  • Summary:This method returns an extent that is centered and zoomed in.

ZoomIntoCenter

  • Parameters:RectangleShape,Int32,PointShape,Single,Single
  • DeclaringType:N/A
  • Summary:This method returns an extent that is centered and zoomed in.

ZoomIntoCenter

  • Parameters:RectangleShape,Int32,Feature,Single,Single
  • DeclaringType:N/A
  • Summary:This method returns an extent that is centered and zoomed.

ZoomIntoOffsetPoint

  • Parameters:RectangleShape,Single,Single,ScreenPointF,Int32
  • DeclaringType:N/A
  • Summary:This method returns an extent that is keeping the offsetScreenPoint constant and zoomed.

ZoomOut

  • Parameters:RectangleShape,Int32
  • DeclaringType:N/A
  • Summary:This method returns a new extent that is zoomed out by the percentage provided.

ZoomOutToCenter

  • Parameters:RectangleShape,Int32,Feature,Single,Single
  • DeclaringType:N/A
  • Summary:This method returns an extent that is centered and zoomed out.

ZoomOutToCenter

  • Parameters:RectangleShape,Int32,PointShape,Single,Single
  • DeclaringType:N/A
  • Summary:This method returns an extent that is centered and zoomed out.

ZoomOutToCenter

  • Parameters:RectangleShape,Int32,Single,Single,Single,Single
  • DeclaringType:N/A
  • Summary:This method returns an extent that is centered and zoomed out.

ZoomOutToOffsetPoint

  • Parameters:RectangleShape,Single,Single,ScreenPointF,Int32
  • DeclaringType:N/A
  • Summary:This method returns an extent that is keeping the offsetScreenPoint constant and zoomed.

ZoomToScale

  • Parameters:Double,RectangleShape,GeographyUnit,Single,Single
  • DeclaringType:N/A
  • Summary:This method returns a extent that has been zoomed into a certain scale.

ZoomToScale

Protected Methods

/xU=

  • Parameters:N/A
  • DeclaringType:N/A
  • Summary:N/A

Finalize

  • Parameters:N/A
  • DeclaringType:Object
  • Summary:N/A

MemberwiseClone

  • Parameters:N/A
  • DeclaringType:Object
  • Summary:N/A

Qj4=

g0M=

hUM=

  • Parameters:Double,Collection<Double>
  • DeclaringType:N/A
  • Summary:N/A

hUM=

  • Parameters:Double,Collection<Double>,Double,Double
  • DeclaringType:N/A
  • Summary:N/A

hkM=

i0M=

  • Parameters:Bitmap,Rectangle,RectangleF
  • DeclaringType:N/A
  • Summary:N/A

jEM=

  • Parameters:PointShape
  • DeclaringType:N/A
  • Summary:N/A

jUM=

  • Parameters:Dictionary<String,String>
  • DeclaringType:N/A
  • Summary:N/A

Public Properties

Protected Properties

Public Events

Public Constructors

Protected Constructors

Public Methods

CenterAt(RectangleShape,PointShape,Single,Single)

This is a static function that allows you to pass in a world rectangle, a world point to center on, and a height and width in screen units. The function will center the rectangle based on the point, then adjust the rectangle's ratio based on the height and width in screen coordinates.

Remarks

None

Return Value

  • Return Type:RectangleShape
  • Description:This method returns an adjusted extent centered on a point.

Parameters

worldExtent

  • Description:This parameter is the current extent you want to center.

worldPoint

  • Description:This parameter is the world point you want to center on.

screenWidth

  • Type:Single
  • Description:This parameter is the width of the screen.

screenHeight

  • Type:Single
  • Description:This parameter is the height of the screen.

Go Back

CenterAt(RectangleShape,Feature,Single,Single)

This is a static function that allows you to pass in a world rectangle, a world point to center on, and a height and width in screen units. The function will center the rectangle based on the point, then adjust the rectangle's ratio based on the height and width in screen coordinates.

Remarks

None

Return Value

  • Return Type:RectangleShape
  • Description:This method returns an adjusted extent centered on a point.

Parameters

worldExtent

  • Description:This parameter is the current extent you want to center.

centerFeature

  • Type:Feature
  • Description:This parameter is the world point you want to center on.

screenWidth

  • Type:Single
  • Description:This parameter is the width of the screen.

screenHeight

  • Type:Single
  • Description:This parameter is the height of the screen.

Go Back

CenterAt(RectangleShape,Single,Single,Single,Single)

This method returns an adjusted extent centered on a point.

Remarks

None

Return Value

  • Return Type:RectangleShape
  • Description:This method returns an adjusted extent centered on a point.

Parameters

worldExtent

  • Description:This parameter is the current extent you want to center.

screenX

  • Type:Single
  • Description:This parameter is the X coordinate on the screen to center on.

screenY

  • Type:Single
  • Description:This parameter is the Y coordinate on the screen to center on.

screenWidth

  • Type:Single
  • Description:This parameter is the width of the screen.

screenHeight

  • Type:Single
  • Description:This parameter is the height of the screen.

Go Back

Equals(Object)

N/A

Remarks

N/A

Return Value

  • Return Type:Boolean
  • Description:N/A

Parameters

obj

  • Type:Object
  • Description:N/A

Go Back

GetBoundingBoxOfItems(IEnumerable<Feature>)

This API gets the BoundingBox of a group of Features.

Remarks

N/A

Return Value

  • Return Type:RectangleShape
  • Description:The BoundingBox that contains all the features you passed in.

Parameters

features

  • Type:IEnumerable<Feature>
  • Description:The target group of Features to get the BoundingBox for.

Go Back

GetBoundingBoxOfItems(IEnumerable<BaseShape>)

This API gets the BoundingBox of a group of BaseShapes.

Remarks

N/A

Return Value

  • Return Type:RectangleShape
  • Description:The BoundingBox that contains all of the shapes you passed in.

Parameters

shapes

  • Type:IEnumerable<BaseShape>
  • Description:The target group of BaseShapes to get the BoundingBox for.

Go Back

GetDrawingExtent(RectangleShape,Single,Single)

This method returns an adjusted extent based on the ratio of the screen width and height.

Remarks

This function is used because the extent to draw must be the rame ratio as the screen width and height. If they are not, then the image drawn will be stretched or compressed. We always adjust the extent upwards to ensure that no matter how we adjust it, the original extent will fit within the new extent. This ensures that everything you wanted to see in the first extent is visible and maybe a bit more.

Return Value

  • Return Type:RectangleShape
  • Description:This method returns an adjusted extent based on the ratio of the screen width and height.

Parameters

worldExtent

  • Description:This parameter is the world extent you want to adjust for drawing.

screenWidth

  • Type:Single
  • Description:This parameter is the width of the screen.

screenHeight

  • Type:Single
  • Description:This parameter is the height of the screen.

Go Back

GetHashCode()

N/A

Remarks

N/A

Return Value

  • Return Type:Int32
  • Description:N/A

Parameters

GetScale(RectangleShape,Single,GeographyUnit)

This method returns the current scale.

Remarks

None

Return Value

  • Return Type:Double
  • Description:This method returns the current scale.

Parameters

worldExtent

  • Description:This parameter is the world extent you want to find the scale for.

screenWidth

  • Type:Single
  • Description:This parameter is the screen width.

worldExtentUnit

  • Description:This parameter is the unit of the world extent.

Go Back

GetScale(RectangleShape,Single,GeographyUnit,Single)

This method returns the current scale.

Remarks

None

Return Value

  • Return Type:Double
  • Description:This method returns the current scale.

Parameters

worldExtent

  • Description:This parameter is the world extent you want to find the scale for.

screenWidth

  • Type:Single
  • Description:This parameter is the screen width.

worldExtentUnit

  • Description:This parameter is the unit of the world extent.

dpi

  • Type:Single
  • Description:This parameter is the dpi of the world extent.

Go Back

GetScreenDistanceBetweenTwoWorldPoints(RectangleShape,PointShape,PointShape,Single,Single)

This method returns the number of pixels between two world points.

Remarks

None

Return Value

  • Return Type:Single
  • Description:This method returns the number of pixels between two world points.

Parameters

worldExtent

worldPoint1

  • Description:This parameter is the first point – the one you want to measure from.

worldPoint2

  • Description:This parameter is the second point – the one you want to measure to.

screenWidth

  • Type:Single
  • Description:This parameter is the width of the screen.

screenHeight

  • Type:Single
  • Description:This parameter is the height of the screen.

Go Back

GetScreenDistanceBetweenTwoWorldPoints(RectangleShape,Feature,Feature,Single,Single)

This method returns the number of pixels between two features.

Remarks

None

Return Value

  • Return Type:Single
  • Description:This method returns the number of pixels between two features.

Parameters

worldExtent

worldPointFeature1

  • Type:Feature
  • Description:This parameter is the first feature – the one you want to measure from.

worldPointFeature2

  • Type:Feature
  • Description:This parameter is the second feature – the one you want to measure to.

screenWidth

  • Type:Single
  • Description:This parameter is the width of the screen.

screenHeight

  • Type:Single
  • Description:This parameter is the height of the screen.

Go Back

GetType()

N/A

Remarks

N/A

Return Value

  • Return Type:Type
  • Description:N/A

Parameters

GetWorldDistanceBetweenTwoScreenPoints(RectangleShape,Single,Single,Single,Single,Single,Single,GeographyUnit,DistanceUnit)

This method returns the distance in world units between two screen points.

Remarks

N/A

Return Value

  • Return Type:Double
  • Description:N/A

Parameters

worldExtent

screenPoint1X

  • Type:Single
  • Description:This parameter is the X of the point you want to measure from.

screenPoint1Y

  • Type:Single
  • Description:This parameter is the Y of the point you want to measure from.

screenPoint2X

  • Type:Single
  • Description:This parameter is the X of the point you want to measure to.

screenPoint2Y

  • Type:Single
  • Description:This parameter is the Y of the point you want to measure to.

screenWidth

  • Type:Single
  • Description:This parameter is the width of the screen.

screenHeight

  • Type:Single
  • Description:This parameter is the height of the screen.

worldExtentUnit

  • Description:This is the geographic unit of the world extent you passed in.

distanceUnit

  • Description:This is the geographic unit you want the result to show in.

Go Back

GetWorldDistanceBetweenTwoScreenPoints(RectangleShape,ScreenPointF,ScreenPointF,Single,Single,GeographyUnit,DistanceUnit)

This method returns the distance in world units between two screen points.

Remarks

None

Return Value

  • Return Type:Double
  • Description:This method returns the distance in world units between two screen points.

Parameters

worldExtent

screenPoint1

  • Description:This is the screen point you want to measure from.

screenPoint2

  • Description:This is the screen point you want to measure to.

screenWidth

  • Type:Single
  • Description:This parameter is the width of the screen.

screenHeight

  • Type:Single
  • Description:This parameter is the height of the screen.

worldExtentUnit

  • Description:This is the geographic unit of the world extent rectangle.

distanceUnit

  • Description:This is the geographic unit you want the result to show in.

Go Back

Pan(RectangleShape,PanDirection,Int32)

This method returns a panned extent.

Remarks

None

Return Value

  • Return Type:RectangleShape
  • Description:This method returns a panned extent.

Parameters

worldExtent

  • Description:This parameter is the world extent you want to pan.

direction

  • Description:This parameter is the direction in which you want to pan.

percentage

  • Type:Int32
  • Description:This parameter is the percentage by which you want to pan.

Go Back

Pan(RectangleShape,Single,Int32)

This method returns a panned extent.

Remarks

None

Return Value

  • Return Type:RectangleShape
  • Description:This method returns a panned extent.

Parameters

worldExtent

  • Description:This parameter is the world extent you want to pan.

degree

  • Type:Single
  • Description:This parameter is the degree you want to pan.

percentage

  • Type:Int32
  • Description:This parameter is the percentage by which you want to pan.

Go Back

ResizeExtent(RectangleShape,Single,Single,Single,GeographyUnit,MapResizeMode)

This method returns a RectangleShape by resize parameters.

Remarks

N/A

Return Value

  • Return Type:RectangleShape
  • Description:This method returns a RectangleShape by resize parameters.

Parameters

sourceExtent

sourceScreenWidth

  • Type:Single
  • Description:The width of the source rectangle shape in screen coordinate

targetScreenWidth

  • Type:Single
  • Description:The width of the target rectangle shape in screen coordinate

targetScreenHeight

  • Type:Single
  • Description:The height of the target rectangle shape in screen coordinate

mapUnit

  • Description:map unit which this rectangle shape used

resizeType

  • Description:Represents resize type which can decide to use which way to resize.

Go Back

SnapToZoomLevel(RectangleShape,GeographyUnit,Single,Single,ZoomLevelSet)

This method returns an extent that is snapped to a zoom level in the provided zoom level set.

Remarks

None

Return Value

  • Return Type:RectangleShape
  • Description:This method returns an extent that is snapped to a zoom level in the provided zoom level set.

Parameters

worldExtent

  • Description:This parameter is the world extent you want snapped.

worldExtentUnit

  • Description:This parameter is the geographic unit of the world extent parameter.

screenWidth

  • Type:Single
  • Description:This parameter is the screen width.

screenHeight

  • Type:Single
  • Description:This parameter is the screen height.

zoomLevelSet

  • Description:This parameter is the set of zoom levels you want to snap to.

Go Back

ToScreenCoordinate(RectangleShape,Feature,Single,Single)

This method returns screen coordinates from world coordinates.

Remarks

None

Return Value

  • Return Type:ScreenPointF
  • Description:This method returns screen coordinates from world coordinates.

Parameters

worldExtent

worldPointFeature

  • Type:Feature
  • Description:This parameter is the feature you want converted to a screen point.

screenWidth

  • Type:Single
  • Description:This parameter is the width of the screen.

screenHeight

  • Type:Single
  • Description:This parameter is the height of the screen.

Go Back

ToScreenCoordinate(RectangleShape,PointShape,Single,Single)

This method returns screen coordinates from world coordinates.

Remarks

None

Return Value

  • Return Type:ScreenPointF
  • Description:This method returns screen coordinates from world coordinates.

Parameters

worldExtent

worldPoint

  • Description:This parameter is the world point you want converted to a screen point.

screenWidth

  • Type:Single
  • Description:This parameter is the width of the screen.

screenHeight

  • Type:Single
  • Description:This parameter is the height of the screen.

Go Back

ToScreenCoordinate(RectangleShape,RectangleShape,Single,Single)

This method returns Rectangle in screen coordinates from RectangleShape in world coordinates.

Remarks

None

Return Value

  • Return Type:Rectangle
  • Description:This method returns Rectangle in screen coordinates from RectangleShape in world coordinates.

Parameters

worldExtent

targetExtent

  • Description:This parameter is the rectangle shape in world coordinate you want converted to a rectangle in screen coordinate.

currentExtentWidth

  • Type:Single
  • Description:This parameter is the width of the screen.

currentExtentHeight

  • Type:Single
  • Description:This parameter is the height of the screen.

Go Back

ToScreenCoordinate(RectangleShape,Double,Double,Single,Single)

This method returns screen coordinates from world coordinates.

Remarks

None

Return Value

  • Return Type:ScreenPointF
  • Description:This method returns screen coordinates from world coordinates.

Parameters

worldExtent

worldX

  • Type:Double
  • Description:This parameter is the world X you want converted to screen points.

worldY

  • Type:Double
  • Description:This parameter is the world Y you want converted to screen points.

screenWidth

  • Type:Single
  • Description:This parameter is the width of the screen.

screenHeight

  • Type:Single
  • Description:This parameter is the height of the screen.

Go Back

ToString()

N/A

Remarks

N/A

Return Value

  • Return Type:String
  • Description:N/A

Parameters

ToWorldCoordinate(RectangleShape,Single,Single,Single,Single)

This method returns world coordinates from screen coordinates.

Remarks

None

Return Value

  • Return Type:PointShape
  • Description:This method returns world coordinates from screen coordinates.

Parameters

worldExtent

screenX

  • Type:Single
  • Description:This parameter is the X of the point you want converted to world coordinates.

screenY

  • Type:Single
  • Description:This parameter is the Y of the point you want converted to world coordinates.

screenWidth

  • Type:Single
  • Description:This parameter is the width of the screen.

screenHeight

  • Type:Single
  • Description:This parameter is the height of the screen.

Go Back

ToWorldCoordinate(RectangleShape,ScreenPointF,Single,Single)

This method returns world coordinates from screen coordinates.

Remarks

None

Return Value

  • Return Type:PointShape
  • Description:This method returns world coordinates from screen coordinates.

Parameters

worldExtent

screenPoint

  • Description:This parameter is the screen point you want converted to a world point.

screenWidth

  • Type:Single
  • Description:This parameter is the width of the screen.

screenHeight

  • Type:Single
  • Description:This parameter is the height of the screen.

Go Back

ZoomIn(RectangleShape,Int32)

This method returns a new extent that is zoomed in by the percentage provided.

Remarks

None

Return Value

  • Return Type:RectangleShape
  • Description:This method returns a new extent that is zoomed in by the percentage provided.

Parameters

worldExtent

  • Description:This parameter is the world extent you want to zoom to.

percentage

  • Type:Int32
  • Description:This parameter is the percentage by which you want to zoom in.

Go Back

ZoomIntoCenter(RectangleShape,Int32,Single,Single,Single,Single)

This method returns an extent that is centered and zoomed in.

Remarks

The resulting rectangle will already be adjusted for the ratio of the screen. You do not need to call GetDrawingExtent afterwards.

Return Value

  • Return Type:RectangleShape
  • Description:This method returns an extent that is centered and zoomed in.

Parameters

worldExtent

  • Description:This parameter is the world extent you want to center and zoom to.

percentage

  • Type:Int32
  • Description:This parameter is the percentage by which you want to zoom in.

screenX

  • Type:Single
  • Description:This parameter is the screen X you want to center on.

screenY

  • Type:Single
  • Description:This parameter is the screen Y you want to center on.

screenWidth

  • Type:Single
  • Description:This parameter is the width of the screen.

screenHeight

  • Type:Single
  • Description:This parameter is the height of the screen.

Go Back

ZoomIntoCenter(RectangleShape,Int32,PointShape,Single,Single)

This method returns an extent that is centered and zoomed in.

Remarks

The resulting rectangle will already be adjusted for the ratio of the screen. You do not need to call GetDrawingExtent afterwards.

Return Value

  • Return Type:RectangleShape
  • Description:This method returns an extent that is centered and zoomed in.

Parameters

worldExtent

  • Description:This parameter is the world extent that you want centered and zoomed to.

percentage

  • Type:Int32
  • Description:This parameter is the percentage by which you want to zoom in.

worldPoint

  • Description:This parameter is the world point you want the extent to be centered on.

screenWidth

  • Type:Single
  • Description:This parameter is the width in screen coordinates.

screenHeight

  • Type:Single
  • Description:This parameter is the height in screen coordinates.

Go Back

ZoomIntoCenter(RectangleShape,Int32,Feature,Single,Single)

This method returns an extent that is centered and zoomed.

Remarks

The resulting rectangle will already be adjusted for the ratio of the screen. You do not need to call GetDrawingExtent afterwards.

Return Value

  • Return Type:RectangleShape
  • Description:This method returns an extent that is centered and zoomed in.

Parameters

worldExtent

  • Description:This parameter is the world extent that you want centered and zoomed to.

percentage

  • Type:Int32
  • Description:This parameter is the percentage by which you want to zoom in.

centerFeature

  • Type:Feature
  • Description:This parameter is the feature you want the extent to be centered on.

screenWidth

  • Type:Single
  • Description:This parameter is the width in screen coordinates.

screenHeight

  • Type:Single
  • Description:This parameter is the height in screen coordinates.

Go Back

ZoomIntoOffsetPoint(RectangleShape,Single,Single,ScreenPointF,Int32)

This method returns an extent that is keeping the offsetScreenPoint constant and zoomed.

Remarks

The resulting rectangle will already be adjusted for the ratio of the screen. You do not need to afterward call GetDrawingExtent.

Return Value

  • Return Type:RectangleShape
  • Description:This method returns an extent that is keeping the offsetScreenPoint constant and zoomed.

Parameters

worldExtent

  • Description:This parameter is the world extent that you want centered and zoomed.

screenWidth

  • Type:Single
  • Description:This parameter is the width in screen coordinates.

screenHeight

  • Type:Single
  • Description:This parameter is the height in screen coordinates.

offsetScreenPoint

  • Description:This parameter is the screen point you want to keep it constant.

percentage

  • Type:Int32
  • Description:This parameter is the percentage you want to zoom.

Go Back

ZoomOut(RectangleShape,Int32)

This method returns a new extent that is zoomed out by the percentage provided.

Remarks

None

Return Value

  • Return Type:RectangleShape
  • Description:This method returns a new extent that is zoomed out by the percentage provided.

Parameters

worldExtent

  • Description:This parameter is the world extent you want to zoom out to.

percentage

  • Type:Int32
  • Description:This parameter is the percentage by which you want to zoom out.

Go Back

ZoomOutToCenter(RectangleShape,Int32,Feature,Single,Single)

This method returns an extent that is centered and zoomed out.

Remarks

The resulting rectangle will already be adjusted for the ratio of the screen. You do not need to call GetDrawingExtent afterwards.

Return Value

  • Return Type:RectangleShape
  • Description:This method returns an extent that is centered and zoomed out.

Parameters

worldExtent

  • Description:This parameter is the world extent you want to center and zoom out to.

percentage

  • Type:Int32
  • Description:This parameter is the percentage by which you want to zoom out.

centerFeature

  • Type:Feature
  • Description:This parameter is the feature you want the extent to be centered on.

screenWidth

  • Type:Single
  • Description:This parameter is the width of the screen.

screenHeight

  • Type:Single
  • Description:This parameter is the height of the screen.

Go Back

ZoomOutToCenter(RectangleShape,Int32,PointShape,Single,Single)

This method returns an extent that is centered and zoomed out.

Remarks

The resulting rectangle will already be adjusted for the ratio of the screen. You do not need to call GetDrawingExtent afterwards.

Return Value

  • Return Type:RectangleShape
  • Description:This method returns an extent that is centered and zoomed out.

Parameters

worldExtent

  • Description:This parameter is the world extent you want to center and zoom out to.

percentage

  • Type:Int32
  • Description:This parameter is the percentage by which you want to zoom out.

worldPoint

  • Description:This parameter is the world point you want the extent to be centered on.

screenWidth

  • Type:Single
  • Description:This parameter is the width of the screen.

screenHeight

  • Type:Single
  • Description:This parameter is the height of the screen.

Go Back

ZoomOutToCenter(RectangleShape,Int32,Single,Single,Single,Single)

This method returns an extent that is centered and zoomed out.

Remarks

The resulting rectangle will already be adjusted for the ratio of the screen. You do not need to call GetDrawingExtent afterward.

Return Value

  • Return Type:RectangleShape
  • Description:This method returns an extent that is centered and zoomed out.

Parameters

worldExtent

  • Description:This parameter is the world extent you want to center and zoom out to.

percentage

  • Type:Int32
  • Description:This parameter is the percentage by which you want to zoom out.

screenX

  • Type:Single
  • Description:This parameter is the screen X you want to center on.

screenY

  • Type:Single
  • Description:This parameter is the screen Y you want to center on.

screenWidth

  • Type:Single
  • Description:This parameter is the width of the screen.

screenHeight

  • Type:Single
  • Description:This parameter is the height of the screen.

Go Back

ZoomOutToOffsetPoint(RectangleShape,Single,Single,ScreenPointF,Int32)

This method returns an extent that is keeping the offsetScreenPoint constant and zoomed.

Remarks

The resulting rectangle will already be adjusted for the ratio of the screen. You do not need to afterward call GetDrawingExtent.

Return Value

  • Return Type:RectangleShape
  • Description:This method returns an extent that is keeping the offsetScreenPoint constant and zoomed.

Parameters

worldExtent

  • Description:This parameter is the world extent that you want centered and zoomed.

screenWidth

  • Type:Single
  • Description:This parameter is the width in screen coordinates.

screenHeight

  • Type:Single
  • Description:This parameter is the height in screen coordinates.

offsetScreenPoint

  • Description:This parameter is the screen point you want to keep it constant.

percentage

  • Type:Int32
  • Description:This parameter is the percentage you want to zoom.

Go Back

ZoomToScale(Double,RectangleShape,GeographyUnit,Single,Single)

This method returns a extent that has been zoomed into a certain scale.

Remarks

None

Return Value

  • Return Type:RectangleShape
  • Description:This method returns a extent that has been zoomed into a certain scale.

Parameters

targetScale

  • Type:Double
  • Description:This parameter is the scale you want to zoom into.

worldExtent

  • Description:This parameter is the world extent you want zoomed into the scale.

worldExtentUnit

  • Description:This parameter is the geographic unit of the world extent parameter.

screenWidth

  • Type:Single
  • Description:This parameter is the screen width.

screenHeight

  • Type:Single
  • Description:This parameter is the screen height.

Go Back

ZoomToScale(Double,RectangleShape,GeographyUnit,Single,Single,ScreenPointF)

This method returns a extent that has been zoomed into a certain scale.

Remarks

None

Return Value

  • Return Type:RectangleShape
  • Description:This method returns a extent that has been zoomed into a certain scale.

Parameters

targetScale

  • Type:Double
  • Description:This parameter is the scale you want to zoom into.

worldExtent

  • Description:This parameter is the world extent you want zoomed into the scale.

worldExtentUnit

  • Description:This parameter is the geographic unit of the world extent parameter.

screenWidth

  • Type:Single
  • Description:This parameter is the screen width.

screenHeight

  • Type:Single
  • Description:This parameter is the screen height.

offsetScreenPoint

  • Description:This parameter is the offsetScreenPoint.

Go Back

Protected Methods

/xU=()

N/A

Remarks

N/A

Return Value

  • Return Type:String
  • Description:N/A

Parameters

Finalize()

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

MemberwiseClone()

N/A

Remarks

N/A

Return Value

  • Return Type:Object
  • Description:N/A

Parameters

Qj4=(Double,RectangleShape,GeographyUnit,Single)

N/A

Remarks

N/A

Return Value

  • Return Type:Int32
  • Description:N/A

Parameters

newWidth

  • Type:Double
  • Description:N/A

newTileExtent

mapUnit

dpi

  • Type:Single
  • Description:N/A

Go Back

g0M=(RectangleShape,Single,GeographyUnit,Single)

N/A

Remarks

N/A

Return Value

  • Return Type:Double
  • Description:N/A

Parameters

worldExtent

screenWidth

  • Type:Single
  • Description:N/A

worldExtentUnit

dpi

  • Type:Single
  • Description:N/A

Go Back

hUM=(Double,Collection<Double>)

N/A

Remarks

N/A

Return Value

  • Return Type:Int32
  • Description:N/A

Parameters

scale

  • Type:Double
  • Description:N/A

zoomLevelScales

  • Type:Collection<Double>
  • Description:N/A

Go Back

hUM=(Double,Collection<Double>,Double,Double)

N/A

Remarks

N/A

Return Value

  • Return Type:Int32
  • Description:N/A

Parameters

scale

  • Type:Double
  • Description:N/A

zoomLevelScales

  • Type:Collection<Double>
  • Description:N/A

minimumScale

  • Type:Double
  • Description:N/A

maximumScale

  • Type:Double
  • Description:N/A

Go Back

hkM=(RectangleShape,Single,GeographyUnit)

N/A

Remarks

N/A

Return Value

  • Return Type:Double
  • Description:N/A

Parameters

worldExtent

screenWidth

  • Type:Single
  • Description:N/A

worldExtentUnit

Go Back

i0M=(Bitmap,Rectangle,RectangleF)

N/A

Remarks

N/A

Return Value

  • Return Type:Bitmap
  • Description:N/A

Parameters

originalBitmap

  • Type:Bitmap
  • Description:N/A

destRect

  • Type:Rectangle
  • Description:N/A

srcRect

  • Type:RectangleF
  • Description:N/A

Go Back

jEM=(PointShape)

N/A

Remarks

N/A

Return Value

Parameters

point

Go Back

jUM=(Dictionary<String,String>)

N/A

Remarks

N/A

Return Value

  • Return Type:Void
  • Description:N/A

Parameters

parameters

  • Type:Dictionary<String,String>
  • Description:N/A

Go Back

Public Properties

Protected Properties

Public Events

thinkgeo.mapsuite.core.extenthelper.1442485718.txt.gz · Last modified: 2015/09/17 10:28 by admin