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
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
void DrawDrawing(Drawing drawing)
Parameters
drawing
Drawing
void DrawEllipse(Brush brush, Pen pen, Point center, double radiusX, double radiusY)
Parameters
brush
Brush
pen
Pen
center
Point
radiusX
double
radiusY
double
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
void DrawGeometry(Brush brush, Pen pen, string geometry)
Parameters
brush
Brush
pen
Pen
geometry
string
void DrawGeometry(Brush brush, Pen pen, string geometry, Rect target)
Parameters
brush
Brush
pen
Pen
geometry
string
target
Rect
void DrawGeometry(Brush brush, Pen pen, Geometry geometry)
Parameters
brush
Brush
pen
Pen
geometry
Geometry
void DrawGeometry(Brush brush, Pen pen, Geometry geometry, Rect target)
Parameters
brush
Brush
pen
Pen
geometry
Geometry
target
Rect
void DrawGlyphRun(Brush foregroundBrush, GlyphRun glyphRun)
Parameters
foregroundBrush
Brush
glyphRun
GlyphRun
void DrawImage(ImageSource imageSource, Rect rectangle)
Parameters
imageSource
ImageSource
rectangle
Rect
void DrawImage(ImageSource imageSource, Rect rectangle, AnimationClock rectangleAnimations)
Parameters
imageSource
ImageSource
rectangle
Rect
rectangleAnimations
AnimationClock
void DrawLine(Pen pen, Point point0, AnimationClock point0Animations, Point point1, AnimationClock point1Animations)
Parameters
pen
Pen
point0
Point
point0Animations
AnimationClock
point1
Point
point1Animations
AnimationClock
void DrawLine(Pen pen, Point point0, Point point1)
Parameters
pen
Pen
point0
Point
point1
Point
void DrawPolyLine(Pen pen, Point[] points)
Parameters
pen
Pen
points
Point[]
void DrawRectangle(Brush brush, Pen pen, Rect rectangle)
Parameters
brush
Brush
pen
Pen
rectangle
Rect
void DrawRectangle(Brush brush, Pen pen, Rect rectangle, AnimationClock rectangleAnimations)
Parameters
brush
Brush
pen
Pen
rectangle
Rect
rectangleAnimations
AnimationClock
void DrawRoundedRectangle(Brush brush, Pen pen, Rect rectangle, double radiusX, double radiusY)
Parameters
brush
Brush
pen
Pen
rectangle
Rect
radiusX
double
radiusY
double
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 PushClip(Geometry clipGeometry)
Parameters
clipGeometry
Geometry
void PushTransform(Transform transform)
Parameters
transform
Transform