Svg.SvgUnit.GetDevicePoint C# (CSharp) 메소드

GetDevicePoint() 공개 정적인 메소드

public static GetDevicePoint ( SvgUnit x, SvgUnit y, ISvgRenderer renderer, SvgElement owner ) : PointF
x SvgUnit
y SvgUnit
renderer ISvgRenderer
owner SvgElement
리턴 System.Drawing.PointF
        public static System.Drawing.PointF GetDevicePoint(SvgUnit x, SvgUnit y, ISvgRenderer renderer, SvgElement owner)
        {
            return new System.Drawing.PointF(x.ToDeviceValue(renderer, UnitRenderingType.Horizontal, owner),
                                             y.ToDeviceValue(renderer, UnitRenderingType.Vertical, owner));
        }

Usage Example

예제 #1
0
 public PointF ToDeviceValue(ISvgRenderer renderer, SvgElement owner)
 {
     return(SvgUnit.GetDevicePoint(this.X, this.Y, renderer, owner));
 }