Skip to main content

Class Scene

Namespace: VelloSharp
Assembly: VelloSharp.dll

public sealed class Scene : IDisposable

Inheritance

objectScene

Implements

IDisposable

Inherited Members

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

Constructors

Scene()

public Scene()

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

DrawBlurredRoundedRect(Vector2, Vector2, Matrix3x2, RgbaColor, double, double)

public void DrawBlurredRoundedRect(Vector2 origin, Vector2 size, Matrix3x2 transform, RgbaColor color, double radius, double stdDev)

Parameters

origin Vector2

size Vector2

transform Matrix3x2

color RgbaColor

radius double

stdDev double

DrawGlyphRun(Font, ReadOnlySpan<Glyph>, GlyphRunOptions)

public void DrawGlyphRun(Font font, ReadOnlySpan<Glyph> glyphs, GlyphRunOptions options)

Parameters

font Font

glyphs ReadOnlySpan<Glyph>

options GlyphRunOptions

DrawImage(Image, Matrix3x2)

public void DrawImage(Image image, Matrix3x2 transform)

Parameters

image Image

transform Matrix3x2

DrawImage(ImageBrush, Matrix3x2)

public void DrawImage(ImageBrush brush, Matrix3x2 transform)

Parameters

brush ImageBrush

transform Matrix3x2

FillPath(PathBuilder, FillRule, Matrix3x2, RgbaColor)

public void FillPath(PathBuilder path, FillRule fillRule, Matrix3x2 transform, RgbaColor color)

Parameters

path PathBuilder

fillRule FillRule

transform Matrix3x2

color RgbaColor

FillPath(PathBuilder, FillRule, Matrix3x2, Brush, Matrix3x2?)

public void FillPath(PathBuilder path, FillRule fillRule, Matrix3x2 transform, Brush brush, Matrix3x2? brushTransform = null)

Parameters

path PathBuilder

fillRule FillRule

transform Matrix3x2

brush Brush

brushTransform Matrix3x2?

FillPath(PathBuilder, FillRule, Matrix3x2, PenikoBrush, Matrix3x2?)

public void FillPath(PathBuilder path, FillRule fillRule, Matrix3x2 transform, PenikoBrush brush, Matrix3x2? brushTransform = null)

Parameters

path PathBuilder

fillRule FillRule

transform Matrix3x2

brush PenikoBrush

brushTransform Matrix3x2?

FillPath(KurboPath, FillRule, Matrix3x2, Brush, Matrix3x2?)

public void FillPath(KurboPath path, FillRule fillRule, Matrix3x2 transform, Brush brush, Matrix3x2? brushTransform = null)

Parameters

path KurboPath

fillRule FillRule

transform Matrix3x2

brush Brush

brushTransform Matrix3x2?

FillPath(KurboPath, FillRule, Matrix3x2, PenikoBrush, Matrix3x2?)

public void FillPath(KurboPath path, FillRule fillRule, Matrix3x2 transform, PenikoBrush brush, Matrix3x2? brushTransform = null)

Parameters

path KurboPath

fillRule FillRule

transform Matrix3x2

brush PenikoBrush

brushTransform Matrix3x2?

~Scene()

protected ~Scene()

PopLayer()

public void PopLayer()

PushLayer(PathBuilder, LayerBlend, Matrix3x2, float)

public void PushLayer(PathBuilder clip, LayerBlend blend, Matrix3x2 transform, float alpha = 1)

Parameters

clip PathBuilder

blend LayerBlend

transform Matrix3x2

alpha float

PushLuminanceMaskLayer(PathBuilder, Matrix3x2, float)

public void PushLuminanceMaskLayer(PathBuilder clip, Matrix3x2 transform, float alpha = 1)

Parameters

clip PathBuilder

transform Matrix3x2

alpha float

Reset()

public void Reset()

StrokePath(PathBuilder, StrokeStyle, Matrix3x2, RgbaColor)

public void StrokePath(PathBuilder path, StrokeStyle style, Matrix3x2 transform, RgbaColor color)

Parameters

path PathBuilder

style StrokeStyle

transform Matrix3x2

color RgbaColor

StrokePath(PathBuilder, StrokeStyle, Matrix3x2, Brush, Matrix3x2?)

public void StrokePath(PathBuilder path, StrokeStyle style, Matrix3x2 transform, Brush brush, Matrix3x2? brushTransform = null)

Parameters

path PathBuilder

style StrokeStyle

transform Matrix3x2

brush Brush

brushTransform Matrix3x2?

StrokePath(PathBuilder, StrokeStyle, Matrix3x2, PenikoBrush, Matrix3x2?)

public void StrokePath(PathBuilder path, StrokeStyle style, Matrix3x2 transform, PenikoBrush brush, Matrix3x2? brushTransform = null)

Parameters

path PathBuilder

style StrokeStyle

transform Matrix3x2

brush PenikoBrush

brushTransform Matrix3x2?

StrokePath(KurboPath, StrokeStyle, Matrix3x2, Brush, Matrix3x2?)

public void StrokePath(KurboPath path, StrokeStyle style, Matrix3x2 transform, Brush brush, Matrix3x2? brushTransform = null)

Parameters

path KurboPath

style StrokeStyle

transform Matrix3x2

brush Brush

brushTransform Matrix3x2?

StrokePath(KurboPath, StrokeStyle, Matrix3x2, PenikoBrush, Matrix3x2?)

public void StrokePath(KurboPath path, StrokeStyle style, Matrix3x2 transform, PenikoBrush brush, Matrix3x2? brushTransform = null)

Parameters

path KurboPath

style StrokeStyle

transform Matrix3x2

brush PenikoBrush

brushTransform Matrix3x2?