Partilhar via


SkiaCanvas Classe

Definição

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
Herança
Implementações

Construtores

SkiaCanvas()

Propriedades

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

Métodos

ClipPath(PathF, WindingMode)
ClipRectangle(Single, Single, Single, Single)
ConcatenateTransform(Matrix3x2) (Herdado de AbstractCanvas<TState>)
Dispose()
DrawArc(Single, Single, Single, Single, Single, Single, Boolean, Boolean) (Herdado de AbstractCanvas<TState>)
DrawEllipse(Single, Single, Single, Single) (Herdado de AbstractCanvas<TState>)
DrawImage(IImage, Single, Single, Single, Single)
DrawLine(Single, Single, Single, Single) (Herdado de AbstractCanvas<TState>)
DrawPath(PathF) (Herdado de AbstractCanvas<TState>)
DrawRectangle(Single, Single, Single, Single) (Herdado de AbstractCanvas<TState>)
DrawRoundedRectangle(Single, Single, Single, Single, Single) (Herdado de 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) (Herdado de AbstractCanvas<TState>)
GetStringSize(String, IFont, Single, HorizontalAlignment, VerticalAlignment) (Herdado de 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) (Herdado de AbstractCanvas<TState>)
Rotate(Single, Single, Single) (Herdado de AbstractCanvas<TState>)
SaveState()
Scale(Single, Single) (Herdado de AbstractCanvas<TState>)
SetBlur(Single)
SetDisplayScale(Single)
SetFillPaint(Paint, RectF)
SetShadow(SizeF, Single, Color)
StateRestored(SkiaCanvasState)
StateRestored(TState) (Herdado de AbstractCanvas<TState>)
SubtractFromClip(Single, Single, Single, Single)
Translate(Single, Single) (Herdado de AbstractCanvas<TState>)

Métodos de Extensão

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

Desenha o arco. Esse é um método auxiliar para desenhar um arco quando você tem um retângulo já definido para os limites de elipse.

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

Desenha o arco. Esse é um método auxiliar para desenhar um arco quando você tem um retângulo já definido para os limites de elipse.

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)

Habilita a sombra padrão.

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

Preenche o arco. Esse é um método auxiliar para preencher um arco quando você tem um retângulo já definido para os limites de elipse.

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

Preenche o arco. Esse é um método auxiliar para preencher um arco quando você tem um retângulo já definido para os limites de elipse.

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

Preenche o arco com a tinta especificada. Esse é um método auxiliar para ao preencher um arco com um gradiente, para que você não precise se preocupar em calcular os locais do identificador de gradiente com base no tamanho e na localização do retângulo.

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)

Redefine o traço para as configurações padrão:

  • Tamanho do Traço: 1
  • Padrão traço de traço: nenhum
  • Localização do Traço: Centro
  • Junção de Linha de Traço: Miter
  • Limite da Linha de Traço: Bunda
  • Pincel de Traço: Nenhum
  • Cor do Traço: Preto
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)

Aplica-se a