다음을 통해 공유


ScalingCanvas 클래스

정의

public ref class ScalingCanvas : Microsoft::Maui::Graphics::IBlurrableCanvas, Microsoft::Maui::Graphics::ICanvas
public class ScalingCanvas : Microsoft.Maui.Graphics.IBlurrableCanvas, Microsoft.Maui.Graphics.ICanvas
type ScalingCanvas = class
    interface ICanvas
    interface IBlurrableCanvas
Public Class ScalingCanvas
Implements IBlurrableCanvas, ICanvas
상속
ScalingCanvas
구현

생성자

ScalingCanvas(ICanvas)

속성

Alpha
Antialias
BlendMode
DisplayScale
FillColor
Font
FontColor
FontSize
MiterLimit
ParentCanvas
RetinaScale
StrokeColor
StrokeDashOffset
StrokeDashPattern
StrokeLineCap
StrokeLineJoin
StrokeSize
Wrapped

메서드

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

확장 메서드

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

호를 그립니다. 타원 경계에 대해 이미 정의된 사각형이 있는 경우 호를 그리는 도우미 메서드입니다.

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

호를 그립니다. 타원 경계에 대해 이미 정의된 사각형이 있는 경우 호를 그리는 도우미 메서드입니다.

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)

기본 그림자를 사용하도록 설정합니다.

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

호를 채웁니다. 타원 경계에 대해 이미 정의된 사각형이 있는 경우 호를 채우는 도우미 메서드입니다.

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

호를 채웁니다. 타원 경계에 대해 이미 정의된 사각형이 있는 경우 호를 채우는 도우미 메서드입니다.

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

지정된 페인트로 호를 채웁니다. 그라데이션으로 호를 채울 때의 도우미 메서드이므로 직사각형 크기와 위치에 따라 그라데이션 핸들 위치를 계산하는 것에 대해 걱정할 필요가 없습니다.

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)

스트로크를 기본 설정으로 다시 설정합니다.

  • 스트로크 크기: 1
  • 스트로크 대시 패턴: 없음
  • 스트로크 위치: 가운데
  • 스트로크 선 조인: Miter
  • 스트로크 선 캡: 엉덩이
  • 스트로크 브러시: 없음
  • 스트로크 색: 검정
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)

적용 대상