GraphicsViewGeoCanvas¶
Namespace: ThinkGeo.UI.Maui
public class GraphicsViewGeoCanvas : ThinkGeo.Core.GeoCanvas, ThinkGeo.Core.IGeoCanvasRotatable
Inheritance Object → GeoCanvas → GraphicsViewGeoCanvas
Implements IGeoCanvasRotatable
Properties¶
RotationAngle¶
public double RotationAngle { get; set; }
Property Value¶
PivotX¶
public double PivotX { get; set; }
Property Value¶
PivotY¶
public double PivotY { get; set; }
Property Value¶
CurrentScale¶
public double CurrentScale { get; }
Property Value¶
FontDisplayDensity¶
public double FontDisplayDensity { get; }
Property Value¶
DrawingQuality¶
public DrawingQuality DrawingQuality { get; set; }
Property Value¶
DrawingQuality
MapUnit¶
public GeographyUnit MapUnit { get; }
Property Value¶
GeographyUnit
Width¶
public float Width { get; protected set; }
Property Value¶
Height¶
public float Height { get; protected set; }
Property Value¶
CurrentWorldExtent¶
public RectangleShape CurrentWorldExtent { get; protected set; }
Property Value¶
RectangleShape
SupportKeyColor¶
public bool SupportKeyColor { get; }
Property Value¶
KeyColors¶
public Collection<GeoColor> KeyColors { get; }
Property Value¶
NativeImage¶
public object NativeImage { get; }
Property Value¶
IsDrawing¶
public bool IsDrawing { get; protected set; }
Property Value¶
Dpi¶
public float Dpi { get; set; }
Property Value¶
ScaleFactor¶
public float ScaleFactor { get; set; }
Property Value¶
CancellationToken¶
public CancellationToken CancellationToken { get; set; }
Property Value¶
ClippingArea¶
public RectangleShape ClippingArea { get; set; }
Property Value¶
RectangleShape
Constructors¶
GraphicsViewGeoCanvas()¶
public GraphicsViewGeoCanvas()
Methods¶
DrawArcCore(GeoPen, Single, Single, Single, Single, Single, Single, DrawingLevel)¶
protected void DrawArcCore(GeoPen pen, float x, float y, float width, float height, float startAngle, float sweepAngle, DrawingLevel drawingLevel)
Parameters¶
pen
GeoPen
x
Single
y
Single
width
Single
height
Single
startAngle
Single
sweepAngle
Single
drawingLevel
DrawingLevel
DrawAreaCore(IEnumerable<ScreenPointF[]>, GeoPen, GeoBrush, DrawingLevel, Single, Single, PenBrushDrawingOrder)¶
protected void DrawAreaCore(IEnumerable<ScreenPointF[]> screenPoints, GeoPen outlinePen, GeoBrush fillBrush, DrawingLevel drawingLevel, float xOffset, float yOffset, PenBrushDrawingOrder penBrushDrawingOrder)
Parameters¶
screenPoints
IEnumerable<ScreenPointF[]>
outlinePen
GeoPen
fillBrush
GeoBrush
drawingLevel
DrawingLevel
xOffset
Single
yOffset
Single
penBrushDrawingOrder
PenBrushDrawingOrder
DrawLineCore(IEnumerable<ScreenPointF>, GeoPen, DrawingLevel, Single, Single)¶
protected void DrawLineCore(IEnumerable<ScreenPointF> screenPoints, GeoPen linePen, DrawingLevel drawingLevel, float xOffset, float yOffset)
Parameters¶
screenPoints
IEnumerable<ScreenPointF>
linePen
GeoPen
drawingLevel
DrawingLevel
xOffset
Single
yOffset
Single
DrawEllipseCore(ScreenPointF, Single, Single, GeoPen, GeoBrush, DrawingLevel, Single, Single, PenBrushDrawingOrder)¶
protected void DrawEllipseCore(ScreenPointF screenPoint, float width, float height, GeoPen outlinePen, GeoBrush fillBrush, DrawingLevel drawingLevel, float xOffset, float yOffset, PenBrushDrawingOrder penBrushDrawingOrder)
Parameters¶
screenPoint
ScreenPointF
width
Single
height
Single
outlinePen
GeoPen
fillBrush
GeoBrush
drawingLevel
DrawingLevel
xOffset
Single
yOffset
Single
penBrushDrawingOrder
PenBrushDrawingOrder
DrawScreenImageWithoutScalingCore(GeoImage, Single, Single, DrawingLevel, Single, Single, Single)¶
protected void DrawScreenImageWithoutScalingCore(GeoImage image, float centerXInScreen, float centerYInScreen, DrawingLevel drawingLevel, float xOffset, float yOffset, float rotateAngle)
Parameters¶
image
GeoImage
centerXInScreen
Single
centerYInScreen
Single
drawingLevel
DrawingLevel
xOffset
Single
yOffset
Single
rotateAngle
Single
DrawScreenImageCore(GeoImage, Single, Single, Single, Single, DrawingLevel, Single, Single, Single)¶
protected void DrawScreenImageCore(GeoImage image, float centerXInScreen, float centerYInScreen, float widthInScreen, float heightInScreen, DrawingLevel drawingLevel, float xOffset, float yOffset, float rotateAngle)
Parameters¶
image
GeoImage
centerXInScreen
Single
centerYInScreen
Single
widthInScreen
Single
heightInScreen
Single
drawingLevel
DrawingLevel
xOffset
Single
yOffset
Single
rotateAngle
Single
DrawTextCore(String, GeoFont, GeoBrush, GeoPen, IEnumerable<ScreenPointF>, DrawingLevel, Single, Single, DrawingTextAlignment, Single)¶
protected void DrawTextCore(string text, GeoFont font, GeoBrush fillBrush, GeoPen haloPen, IEnumerable<ScreenPointF> textPathInScreen, DrawingLevel drawingLevel, float xOffset, float yOffset, DrawingTextAlignment drawingTextAlignment, float rotateAngle)
Parameters¶
text
String
font
GeoFont
fillBrush
GeoBrush
haloPen
GeoPen
textPathInScreen
IEnumerable<ScreenPointF>
drawingLevel
DrawingLevel
xOffset
Single
yOffset
Single
drawingTextAlignment
DrawingTextAlignment
rotateAngle
Single
MeasureTextCore(String, GeoFont)¶
protected DrawingRectangleF MeasureTextCore(string text, GeoFont font)
Parameters¶
text
String
font
GeoFont
Returns¶
DrawingRectangleF
BeginDrawingCore(Object, RectangleShape, GeographyUnit)¶
protected void BeginDrawingCore(object nativeImage, RectangleShape worldExtent, GeographyUnit drawingMapUnit)
Parameters¶
nativeImage
Object
worldExtent
RectangleShape
drawingMapUnit
GeographyUnit
GetCanvasWidthCore()¶
protected float GetCanvasWidthCore()
Returns¶
GetCanvasHeightCore()¶
protected float GetCanvasHeightCore()
Returns¶
EndDrawingCore()¶
protected void EndDrawingCore()
FlushCore()¶
protected void FlushCore()
Events¶
DrawingProgressChanged¶
public event EventHandler<DrawingProgressChangedEventArgs> DrawingProgressChanged;