Skip to main content

Class VelloGraphics

Namespace: VelloSharp.WinForms
Assembly: VelloSharp.WinForms.Core.dll

public sealed class VelloGraphics

Inheritance​

object ← VelloGraphics

Inherited Members​

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors​

VelloGraphics(VelloGraphicsSession)​

public VelloGraphics(VelloGraphicsSession session)

Parameters​

session VelloGraphicsSession

Properties​

Clip​

public VelloRegion? Clip { get; }

Property Value​

VelloRegion?

ClipBounds​

public RectangleF ClipBounds { get; }

Property Value​

RectangleF

CompositingMode​

public CompositingMode CompositingMode { get; set; }

Property Value​

CompositingMode

CompositingQuality​

public CompositingQuality CompositingQuality { get; set; }

Property Value​

CompositingQuality

DpiX​

public float DpiX { get; }

Property Value​

float

DpiY​

public float DpiY { get; }

Property Value​

float

InterpolationMode​

public InterpolationMode InterpolationMode { get; set; }

Property Value​

InterpolationMode

PixelOffsetMode​

public PixelOffsetMode PixelOffsetMode { get; set; }

Property Value​

PixelOffsetMode

SmoothingMode​

public SmoothingMode SmoothingMode { get; set; }

Property Value​

SmoothingMode

TextRenderingHint​

public TextRenderingHint TextRenderingHint { get; set; }

Property Value​

TextRenderingHint

Transform​

public Matrix3x2 Transform { get; set; }

Property Value​

Matrix3x2

Methods​

Clear(Color)​

public void Clear(Color color)

Parameters​

color Color

DrawEllipse(VelloPen, RectangleF)​

public void DrawEllipse(VelloPen pen, RectangleF rect)

Parameters​

pen VelloPen

rect RectangleF

DrawImage(VelloBitmap, PointF)​

public void DrawImage(VelloBitmap bitmap, PointF point)

Parameters​

bitmap VelloBitmap

point PointF

DrawImage(VelloBitmap, RectangleF)​

public void DrawImage(VelloBitmap bitmap, RectangleF destRect)

Parameters​

bitmap VelloBitmap

destRect RectangleF

DrawImage(VelloBitmap, RectangleF, RectangleF, GraphicsUnit)​

public void DrawImage(VelloBitmap bitmap, RectangleF destRect, RectangleF srcRect, GraphicsUnit srcUnit)

Parameters​

bitmap VelloBitmap

destRect RectangleF

srcRect RectangleF

srcUnit GraphicsUnit

DrawLine(VelloPen, PointF, PointF)​

public void DrawLine(VelloPen pen, PointF pt1, PointF pt2)

Parameters​

pen VelloPen

pt1 PointF

pt2 PointF

DrawLines(VelloPen, ReadOnlySpan<PointF>)​

public void DrawLines(VelloPen pen, ReadOnlySpan<PointF> points)

Parameters​

pen VelloPen

points ReadOnlySpan<PointF>

DrawPath(VelloPen, VelloGraphicsPath)​

public void DrawPath(VelloPen pen, VelloGraphicsPath path)

Parameters​

pen VelloPen

path VelloGraphicsPath

DrawPolygon(VelloPen, ReadOnlySpan<PointF>)​

public void DrawPolygon(VelloPen pen, ReadOnlySpan<PointF> points)

Parameters​

pen VelloPen

points ReadOnlySpan<PointF>

DrawRectangle(Color, float, RectangleF)​

public void DrawRectangle(Color color, float thickness, RectangleF rect)

Parameters​

color Color

thickness float

rect RectangleF

DrawRectangle(VelloPen, RectangleF)​

public void DrawRectangle(VelloPen pen, RectangleF rect)

Parameters​

pen VelloPen

rect RectangleF

DrawString(string, VelloFont, VelloBrush, PointF, VelloStringFormat?)​

public void DrawString(string text, VelloFont font, VelloBrush brush, PointF origin, VelloStringFormat? format = null)

Parameters​

text string

font VelloFont

brush VelloBrush

origin PointF

format VelloStringFormat?

DrawString(string, VelloFont, VelloBrush, RectangleF, VelloStringFormat?)​

public void DrawString(string text, VelloFont font, VelloBrush brush, RectangleF layoutRect, VelloStringFormat? format = null)

Parameters​

text string

font VelloFont

brush VelloBrush

layoutRect RectangleF

format VelloStringFormat?

DrawString(string, VelloFont, Color, PointF, VelloStringFormat?)​

public void DrawString(string text, VelloFont font, Color color, PointF origin, VelloStringFormat? format = null)

Parameters​

text string

font VelloFont

color Color

origin PointF

format VelloStringFormat?

DrawString(string, VelloFont, Color, RectangleF, VelloStringFormat?)​

public void DrawString(string text, VelloFont font, Color color, RectangleF layoutRect, VelloStringFormat? format = null)

Parameters​

text string

font VelloFont

color Color

layoutRect RectangleF

format VelloStringFormat?

FillEllipse(VelloBrush, RectangleF)​

public void FillEllipse(VelloBrush brush, RectangleF rect)

Parameters​

brush VelloBrush

rect RectangleF

FillPath(VelloBrush, VelloGraphicsPath)​

public void FillPath(VelloBrush brush, VelloGraphicsPath path)

Parameters​

brush VelloBrush

path VelloGraphicsPath

FillPolygon(VelloBrush, ReadOnlySpan<PointF>, FillMode)​

public void FillPolygon(VelloBrush brush, ReadOnlySpan<PointF> points, FillMode fillMode = FillMode.Alternate)

Parameters​

brush VelloBrush

points ReadOnlySpan<PointF>

fillMode FillMode

FillRectangle(Color, RectangleF)​

public void FillRectangle(Color color, RectangleF rect)

Parameters​

color Color

rect RectangleF

FillRectangle(RgbaColor, RectangleF)​

public void FillRectangle(RgbaColor color, RectangleF rect)

Parameters​

color RgbaColor

rect RectangleF

FillRectangle(VelloBrush, RectangleF)​

public void FillRectangle(VelloBrush brush, RectangleF rect)

Parameters​

brush VelloBrush

rect RectangleF

FillRegion(VelloBrush, VelloRegion)​

public void FillRegion(VelloBrush brush, VelloRegion region)

Parameters​

brush VelloBrush

region VelloRegion

MeasureString(string, VelloFont, VelloStringFormat?)​

public SizeF MeasureString(string text, VelloFont font, VelloStringFormat? format = null)

Parameters​

text string

font VelloFont

format VelloStringFormat?

Returns​

SizeF

MultiplyTransform(Matrix3x2, MatrixOrder)​

public void MultiplyTransform(Matrix3x2 matrix, MatrixOrder order = MatrixOrder.Prepend)

Parameters​

matrix Matrix3x2

order MatrixOrder

ResetClip()​

public void ResetClip()

ResetTransform()​

public void ResetTransform()

Restore()​

public void Restore()

Restore(VelloGraphicsState)​

public void Restore(VelloGraphicsState state)

Parameters​

state VelloGraphicsState

RotateTransform(float, MatrixOrder)​

public void RotateTransform(float angleDegrees, MatrixOrder order = MatrixOrder.Prepend)

Parameters​

angleDegrees float

order MatrixOrder

Save()​

public VelloGraphicsState Save()

Returns​

VelloGraphicsState

ScaleTransform(float, float, MatrixOrder)​

public void ScaleTransform(float sx, float sy, MatrixOrder order = MatrixOrder.Prepend)

Parameters​

sx float

sy float

order MatrixOrder

SetClip(RectangleF, CombineMode)​

public void SetClip(RectangleF rectangle, CombineMode combineMode = CombineMode.Replace)

Parameters​

rectangle RectangleF

combineMode CombineMode

SetClip(VelloGraphicsPath, CombineMode)​

public void SetClip(VelloGraphicsPath path, CombineMode combineMode = CombineMode.Replace)

Parameters​

path VelloGraphicsPath

combineMode CombineMode

SetClip(VelloRegion, CombineMode)​

public void SetClip(VelloRegion region, CombineMode combineMode = CombineMode.Replace)

Parameters​

region VelloRegion

combineMode CombineMode

TranslateTransform(float, float, MatrixOrder)​

public void TranslateTransform(float dx, float dy, MatrixOrder order = MatrixOrder.Prepend)

Parameters​

dx float

dy float

order MatrixOrder