Products
Professional Services
Demos and Downloads
Help and Support
Products
Professional Services
Demos and Downloads
Help and Support
This is an old revision of the document!
This static class exposes a number of helpful methods when dealing with extents.
N/A
N/A
N/A
N/A
GetDrawingExtent(RectangleShape,Single,Single)
This method returns an adjusted extent based on the ratio of the screen width and height.
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.
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.
None
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.
None
CenterAt(RectangleShape,Single,Single,Single,Single)
This method returns an adjusted extent centered on a point.
None
GetScreenDistanceBetweenTwoWorldPoints(RectangleShape,PointShape,PointShape,Single,Single)
This method returns the number of pixels between two world points.
None
GetScreenDistanceBetweenTwoWorldPoints(RectangleShape,Feature,Feature,Single,Single)
This method returns the number of pixels between two features.
None
GetWorldDistanceBetweenTwoScreenPoints(RectangleShape,ScreenPointF,ScreenPointF,Single,Single,GeographyUnit,DistanceUnit)
This method returns the distance in world units between two screen points.
None
GetWorldDistanceBetweenTwoScreenPoints(RectangleShape,Single,Single,Single,Single,Single,Single,GeographyUnit,DistanceUnit)
This method returns the distance in world units between two screen points.
N/A
GetScale(RectangleShape,Single,GeographyUnit)
This method returns the current scale.
None
GetScale(RectangleShape,Single,GeographyUnit,Single)
This method returns the current scale.
None
GetBoundingBoxOfItems(IEnumerable<BaseShape>)
This API gets the BoundingBox of a group of BaseShapes.
N/A
GetBoundingBoxOfItems(IEnumerable<Feature>)
This API gets the BoundingBox of a group of Features.
N/A
This method returns a new extent that is zoomed in by the percentage provided.
None
ZoomIntoCenter(RectangleShape,Int32,PointShape,Single,Single)
This method returns an extent that is centered and zoomed in.
The resulting rectangle will already be adjusted for the ratio of the screen. You do not need to call GetDrawingExtent afterwards.
ZoomIntoCenter(RectangleShape,Int32,Feature,Single,Single)
This method returns an extent that is centered and zoomed.
The resulting rectangle will already be adjusted for the ratio of the screen. You do not need to call GetDrawingExtent afterwards.
ZoomIntoCenter(RectangleShape,Int32,Single,Single,Single,Single)
This method returns an extent that is centered and zoomed in.
The resulting rectangle will already be adjusted for the ratio of the screen. You do not need to call GetDrawingExtent afterwards.
This method returns a new extent that is zoomed out by the percentage provided.
None
ZoomOutToCenter(RectangleShape,Int32,PointShape,Single,Single)
This method returns an extent that is centered and zoomed out.
The resulting rectangle will already be adjusted for the ratio of the screen. You do not need to call GetDrawingExtent afterwards.
ZoomOutToCenter(RectangleShape,Int32,Feature,Single,Single)
This method returns an extent that is centered and zoomed out.
The resulting rectangle will already be adjusted for the ratio of the screen. You do not need to call GetDrawingExtent afterwards.
ZoomOutToCenter(RectangleShape,Int32,Single,Single,Single,Single)
This method returns an extent that is centered and zoomed out.
The resulting rectangle will already be adjusted for the ratio of the screen. You do not need to call GetDrawingExtent afterward.
Pan(RectangleShape,PanDirection,Int32)
This method returns a panned extent.
None
Pan(RectangleShape,Single,Int32)
This method returns a panned extent.
None
ToScreenCoordinate(RectangleShape,Double,Double,Single,Single)
This method returns screen coordinates from world coordinates.
None
ToScreenCoordinate(RectangleShape,RectangleShape,Single,Single)
This method returns Rectangle in screen coordinates from RectangleShape in world coordinates.
None
ToScreenCoordinate(RectangleShape,PointShape,Single,Single)
This method returns screen coordinates from world coordinates.
None
ToScreenCoordinate(RectangleShape,Feature,Single,Single)
This method returns screen coordinates from world coordinates.
None
ToWorldCoordinate(RectangleShape,Single,Single,Single,Single)
This method returns world coordinates from screen coordinates.
None
ToWorldCoordinate(RectangleShape,ScreenPointF,Single,Single)
This method returns world coordinates from screen coordinates.
None
SnapToZoomLevel(RectangleShape,GeographyUnit,Single,Single,ZoomLevelSet)
This method returns an extent that is snapped to a zoom level in the provided zoom level set.
None
ZoomToScale(Double,RectangleShape,GeographyUnit,Single,Single)
This method returns a extent that has been zoomed into a certain scale.
None
ZoomToScale(Double,RectangleShape,GeographyUnit,Single,Single,ScreenPointF)
This method returns a extent that has been zoomed into a certain scale.
None
ZoomIntoOffsetPoint(RectangleShape,Single,Single,ScreenPointF,Int32)
This method returns an extent that is keeping the offsetScreenPoint constant and zoomed.
The resulting rectangle will already be adjusted for the ratio of the screen. You do not need to afterward call GetDrawingExtent.
ZoomOutToOffsetPoint(RectangleShape,Single,Single,ScreenPointF,Int32)
This method returns an extent that is keeping the offsetScreenPoint constant and zoomed.
The resulting rectangle will already be adjusted for the ratio of the screen. You do not need to afterward call GetDrawingExtent.
ResizeExtent(RectangleShape,Single,Single,Single,GeographyUnit,MapResizeMode)
This method returns a RectangleShape by resize parameters.
N/A
N/A
N/A
N/A
nxk=(Double,Collection<Double>)
N/A
N/A
nxk=(Double,Collection<Double>,Double,Double)
N/A
N/A
pBk=(RectangleShape,Single,GeographyUnit)
N/A
N/A
mhk=(Double,RectangleShape,GeographyUnit,Single)
N/A
N/A
i3g=(GeoImage,DrawingRectangle,DrawingRectangleF)
N/A
N/A
N/A
N/A
N/A
N/A
8501 Wade Blvd Ste 550
Frisco, TX 75034
United States
sales@thinkgeo.com
1-785-727-4133
Online Store
- Desktop
WPF
WinForms
- Web
WebAPI HTML5/JavaScript
ASP.NET MVC
WebForms with AJAX
- Mobile
iOS
Android™
World Street
World Imagery
Routing
Geocoding
Reverse Geocoding
Elevation
Quick Start Guides
Documentation
Blogs
Discussion Forums
Customer Portal
About Us
News & Announcemets
Privacy Policy
Copyright 2003-2017 ThinkGeo LLC.
All rights reserved.