Table of Contents

Interface IDrawing

Namespace
HeBianGu.Control.LayerBox
Assembly
HeBianGu.Control.LayerBox.dll
public interface IDrawing
Extension Methods

Properties

BlueprintDPI

double BlueprintDPI { get; }

Property Value

double

DPI

double DPI { get; }

Property Value

double

LayerView

LayerView LayerView { get; set; }

Property Value

LayerView

Methods

DrawDrawing(byte[], int, int, int)

void DrawDrawing(byte[] data, int pitch, int width, int height)

Parameters

data byte[]
pitch int
width int
height int

DrawDrawing(Drawing)

void DrawDrawing(Drawing drawing)

Parameters

drawing Drawing

DrawEllipse(Brush, Pen, Point, double, double)

void DrawEllipse(Brush brush, Pen pen, Point center, double radiusX, double radiusY)

Parameters

brush Brush
pen Pen
center Point
radiusX double
radiusY double

DrawEllipse(Brush, Pen, Point, AnimationClock, double, AnimationClock, double, AnimationClock)

void DrawEllipse(Brush brush, Pen pen, Point center, AnimationClock centerAnimations, double radiusX, AnimationClock radiusXAnimations, double radiusY, AnimationClock radiusYAnimations)

Parameters

brush Brush
pen Pen
center Point
centerAnimations AnimationClock
radiusX double
radiusXAnimations AnimationClock
radiusY double
radiusYAnimations AnimationClock

DrawGeometry(Brush, Pen, string)

void DrawGeometry(Brush brush, Pen pen, string geometry)

Parameters

brush Brush
pen Pen
geometry string

DrawGeometry(Brush, Pen, string, Rect)

void DrawGeometry(Brush brush, Pen pen, string geometry, Rect target)

Parameters

brush Brush
pen Pen
geometry string
target Rect

DrawGeometry(Brush, Pen, Geometry)

void DrawGeometry(Brush brush, Pen pen, Geometry geometry)

Parameters

brush Brush
pen Pen
geometry Geometry

DrawGeometry(Brush, Pen, Geometry, Rect)

void DrawGeometry(Brush brush, Pen pen, Geometry geometry, Rect target)

Parameters

brush Brush
pen Pen
geometry Geometry
target Rect

DrawGlyphRun(Brush, GlyphRun)

void DrawGlyphRun(Brush foregroundBrush, GlyphRun glyphRun)

Parameters

foregroundBrush Brush
glyphRun GlyphRun

DrawImage(ImageSource, Rect)

void DrawImage(ImageSource imageSource, Rect rectangle)

Parameters

imageSource ImageSource
rectangle Rect

DrawImage(ImageSource, Rect, AnimationClock)

void DrawImage(ImageSource imageSource, Rect rectangle, AnimationClock rectangleAnimations)

Parameters

imageSource ImageSource
rectangle Rect
rectangleAnimations AnimationClock

DrawLine(Pen, Point, AnimationClock, Point, AnimationClock)

void DrawLine(Pen pen, Point point0, AnimationClock point0Animations, Point point1, AnimationClock point1Animations)

Parameters

pen Pen
point0 Point
point0Animations AnimationClock
point1 Point
point1Animations AnimationClock

DrawLine(Pen, Point, Point)

void DrawLine(Pen pen, Point point0, Point point1)

Parameters

pen Pen
point0 Point
point1 Point

DrawPolyLine(Pen, Point[])

void DrawPolyLine(Pen pen, Point[] points)

Parameters

pen Pen
points Point[]

DrawRectangle(Brush, Pen, Rect)

void DrawRectangle(Brush brush, Pen pen, Rect rectangle)

Parameters

brush Brush
pen Pen
rectangle Rect

DrawRectangle(Brush, Pen, Rect, AnimationClock)

void DrawRectangle(Brush brush, Pen pen, Rect rectangle, AnimationClock rectangleAnimations)

Parameters

brush Brush
pen Pen
rectangle Rect
rectangleAnimations AnimationClock

DrawRoundedRectangle(Brush, Pen, Rect, double, double)

void DrawRoundedRectangle(Brush brush, Pen pen, Rect rectangle, double radiusX, double radiusY)

Parameters

brush Brush
pen Pen
rectangle Rect
radiusX double
radiusY double

DrawRoundedRectangle(Brush, Pen, Rect, AnimationClock, double, AnimationClock, double, AnimationClock)

void DrawRoundedRectangle(Brush brush, Pen pen, Rect rectangle, AnimationClock rectangleAnimations, double radiusX, AnimationClock radiusXAnimations, double radiusY, AnimationClock radiusYAnimations)

Parameters

brush Brush
pen Pen
rectangle Rect
rectangleAnimations AnimationClock
radiusX double
radiusXAnimations AnimationClock
radiusY double
radiusYAnimations AnimationClock

DrawText(string, Point, Brush, double)

void DrawText(string text, Point point, Brush foreground, double fontSize = 15)

Parameters

text string
point Point
foreground Brush
fontSize double

DrawText(FormattedText, Point)

void DrawText(FormattedText formattedText, Point origin)

Parameters

formattedText FormattedText
origin Point

DrawTextCenterTo(FormattedText, Point, Point)

void DrawTextCenterTo(FormattedText formattedText, Point from, Point to)

Parameters

formattedText FormattedText
from Point
to Point

Pop()

void Pop()

PushClip(Geometry)

void PushClip(Geometry clipGeometry)

Parameters

clipGeometry Geometry

PushTransform(Transform)

void PushTransform(Transform transform)

Parameters

transform Transform