Классы двумерной графики WPF

  • Published on
    24-Feb-2016

  • View
    108

  • Download
    0

Embed Size (px)

DESCRIPTION

WPF. WPF . GDI GDI+ () . WPF : - PowerPoint PPT Presentation

Transcript

o .NET?

WPF1 WPF GDI GDI+ () . WPF : , , ; .

WPF . ( z-) . . 2 WPF WPF - 1/96 ( ). DPI 96 dpi, - , = - x DPI DPI, , 120 ( ), 1/96*120 = 1.25 (). , , . (point) 1/72 . - pixel snapping3 Shape Geometry , System.Windows.Media.Geometry, . Geometry ( ), ., System.Windows.Shapes.Shape, , ; , ; , . Shape Geometry:public virtual Geometry RenderedGeometry { get; } Data Path ( Shape) Geometry, :public Geometry Data { get; set; }4(shape) , Shape:public Brush Fill { get; set; } Brush . null. public Brush Stroke { get; set; } Brush . null. public double StrokeThickness { get; set; } .public Stretch Stretch { get; set; } . Stretch None, Fill, Uniform, UniformToFill. 5System.Windows.Shapes.Line , , . Line, . .public double X1 { get; set; }public double Y1 { get; set; }public double X2 { get; set; }public double Y2 { get; set; } C#.

Recommended

View more >