Condividi tramite


SkiaCanvas Classe

Definizione

public ref class SkiaCanvas : Microsoft::Maui::Graphics::AbstractCanvas<Microsoft::Maui::Graphics::Skia::SkiaCanvasState ^>, Microsoft::Maui::Graphics::IBlurrableCanvas
public class SkiaCanvas : Microsoft.Maui.Graphics.AbstractCanvas<Microsoft.Maui.Graphics.Skia.SkiaCanvasState>, Microsoft.Maui.Graphics.IBlurrableCanvas
type SkiaCanvas = class
    inherit AbstractCanvas<SkiaCanvasState>
    interface IBlurrableCanvas
Public Class SkiaCanvas
Inherits AbstractCanvas(Of SkiaCanvasState)
Implements IBlurrableCanvas
Ereditarietà
Implementazioni

Costruttori

SkiaCanvas()

Proprietà

Alpha
Antialias
AssignedStrokeLimit (Ereditato da AbstractCanvas<TState>)
BlendMode
Canvas
CurrentState (Ereditato da AbstractCanvas<TState>)
DisplayScale
FillColor
Font
FontColor
FontSize
LimitStrokeScaling (Ereditato da AbstractCanvas<TState>)
LimitStrokeScalingEnabled (Ereditato da AbstractCanvas<TState>)
MiterLimit
PlatformStrokeSize
RetinaScale (Ereditato da AbstractCanvas<TState>)
StrokeColor
StrokeDashOffset (Ereditato da AbstractCanvas<TState>)
StrokeDashPattern (Ereditato da AbstractCanvas<TState>)
StrokeLimit (Ereditato da AbstractCanvas<TState>)
StrokeLineCap
StrokeLineJoin
StrokeSize (Ereditato da AbstractCanvas<TState>)

Metodi

ClipPath(PathF, WindingMode)
ClipRectangle(Single, Single, Single, Single)
ConcatenateTransform(Matrix3x2) (Ereditato da AbstractCanvas<TState>)
Dispose()
DrawArc(Single, Single, Single, Single, Single, Single, Boolean, Boolean) (Ereditato da AbstractCanvas<TState>)
DrawEllipse(Single, Single, Single, Single) (Ereditato da AbstractCanvas<TState>)
DrawImage(IImage, Single, Single, Single, Single)
DrawLine(Single, Single, Single, Single) (Ereditato da AbstractCanvas<TState>)
DrawPath(PathF) (Ereditato da AbstractCanvas<TState>)
DrawRectangle(Single, Single, Single, Single) (Ereditato da AbstractCanvas<TState>)
DrawRoundedRectangle(Single, Single, Single, Single, Single) (Ereditato da AbstractCanvas<TState>)
DrawString(String, Single, Single, HorizontalAlignment)
DrawString(String, Single, Single, Single, Single, HorizontalAlignment, VerticalAlignment, TextFlow, Single)
DrawText(IAttributedText, Single, Single, Single, Single)
FillArc(Single, Single, Single, Single, Single, Single, Boolean)
FillEllipse(Single, Single, Single, Single)
FillPath(PathF, WindingMode)
FillRectangle(Single, Single, Single, Single)
FillRoundedRectangle(Single, Single, Single, Single, Single)
GetStringSize(String, IFont, Single) (Ereditato da AbstractCanvas<TState>)
GetStringSize(String, IFont, Single, HorizontalAlignment, VerticalAlignment) (Ereditato da AbstractCanvas<TState>)
PlatformConcatenateTransform(Matrix3x2)
PlatformDrawArc(Single, Single, Single, Single, Single, Single, Boolean, Boolean)
PlatformDrawEllipse(Single, Single, Single, Single)
PlatformDrawLine(Single, Single, Single, Single)
PlatformDrawPath(PathF)
PlatformDrawRectangle(Single, Single, Single, Single)
PlatformDrawRoundedRectangle(Single, Single, Single, Single, Single)
PlatformRotate(Single, Single)
PlatformRotate(Single, Single, Single, Single)
PlatformScale(Single, Single)
PlatformSetStrokeDashPattern(Single[], Single, Single)
PlatformTranslate(Single, Single)
ResetState()
RestoreState()
Rotate(Single) (Ereditato da AbstractCanvas<TState>)
Rotate(Single, Single, Single) (Ereditato da AbstractCanvas<TState>)
SaveState()
Scale(Single, Single) (Ereditato da AbstractCanvas<TState>)
SetBlur(Single)
SetDisplayScale(Single)
SetFillPaint(Paint, RectF)
SetShadow(SizeF, Single, Color)
StateRestored(SkiaCanvasState)
StateRestored(TState) (Ereditato da AbstractCanvas<TState>)
SubtractFromClip(Single, Single, Single, Single)
Translate(Single, Single) (Ereditato da AbstractCanvas<TState>)

Metodi di estensione

ClipPath(ICanvas, PathF, WindingMode)
ClipRectangle(ICanvas, Rect)
ClipRectangle(ICanvas, RectF)
DrawArc(ICanvas, Rect, Single, Single, Boolean, Boolean)

Disegna l'arco. Si tratta di un metodo helper per disegnare un arco quando si dispone di un rettangolo già definito per i limiti di sospensione.

DrawArc(ICanvas, RectF, Single, Single, Boolean, Boolean)

Disegna l'arco. Si tratta di un metodo helper per disegnare un arco quando si dispone di un rettangolo già definito per i limiti di sospensione.

DrawCircle(ICanvas, Point, Double)
DrawCircle(ICanvas, PointF, Single)
DrawCircle(ICanvas, Single, Single, Single)
DrawEllipse(ICanvas, Rect)
DrawEllipse(ICanvas, RectF)
DrawLine(ICanvas, PointF, PointF)
DrawPath(ICanvas, PathF)
DrawRectangle(ICanvas, Rect)
DrawRectangle(ICanvas, RectF)
DrawRoundedRectangle(ICanvas, Rect, Double)
DrawRoundedRectangle(ICanvas, Rect, Double, Double, Double, Double)
DrawRoundedRectangle(ICanvas, RectF, Single)
DrawRoundedRectangle(ICanvas, RectF, Single, Single)
DrawRoundedRectangle(ICanvas, RectF, Single, Single, Single, Single)
DrawRoundedRectangle(ICanvas, Single, Single, Single, Single, Single, Single, Single, Single)
DrawString(ICanvas, String, Rect, HorizontalAlignment, VerticalAlignment, TextFlow, Single)
DrawString(ICanvas, String, RectF, HorizontalAlignment, VerticalAlignment, TextFlow, Single)
EnableDefaultShadow(ICanvas, Single)

Abilita l'ombreggiatura predefinita.

FillArc(ICanvas, Rect, Single, Single, Boolean)

Riempie l'arco. Si tratta di un metodo helper per riempire un arco quando si dispone di un rettangolo già definito per i limiti di sospensione.

FillArc(ICanvas, RectF, Single, Single, Boolean)

Riempie l'arco. Si tratta di un metodo helper per riempire un arco quando si dispone di un rettangolo già definito per i limiti di sospensione.

FillArc(ICanvas, Single, Single, Single, Single, Single, Single, Paint, Boolean)

Riempie l'arco con la vernice specificata. Questo è un metodo helper per quando si riempie un arco con una sfumatura, in modo che non sia necessario preoccuparsi di calcolare le posizioni di handle sfumatura in base alle dimensioni e alla posizione del rettangolo.

FillCircle(ICanvas, Point, Double)
FillCircle(ICanvas, PointF, Single)
FillCircle(ICanvas, Single, Single, Single)
FillEllipse(ICanvas, Rect)
FillEllipse(ICanvas, RectF)
FillPath(ICanvas, PathF)
FillPath(ICanvas, PathF, WindingMode)
FillRectangle(ICanvas, Rect)
FillRectangle(ICanvas, RectF)
FillRoundedRectangle(ICanvas, Rect, Double)
FillRoundedRectangle(ICanvas, Rect, Double, Double, Double, Double)
FillRoundedRectangle(ICanvas, RectF, Single)
FillRoundedRectangle(ICanvas, RectF, Single, Single)
FillRoundedRectangle(ICanvas, RectF, Single, Single, Single, Single)
FillRoundedRectangle(ICanvas, Single, Single, Single, Single, Single, Single, Single, Single)
ResetStroke(ICanvas)

Reimposta il tratto alle impostazioni predefinite:

  • Dimensioni tratto: 1
  • Modello trattino tratto: Nessuno
  • Percorso tratto: Centro
  • Join linea tratto: Miter
  • Limite linea tratto: Butt
  • Pennello tratto: Nessuno
  • Colore tratto: nero
SetFillPaint(ICanvas, Paint, Point, Point)
SetFillPaint(ICanvas, Paint, PointF, PointF)
SetFillPaint(ICanvas, Paint, Rect)
SetFillPaint(ICanvas, Paint, RectF)
SetFillPattern(ICanvas, IPattern)
SetFillPattern(ICanvas, IPattern, Color)
SubtractFromClip(ICanvas, Rect)
SubtractFromClip(ICanvas, RectF)
SetFillImage(ICanvas, IImage)

Si applica a