Svg.SvgUnit.GetDevicePoint C# (CSharp) Method

GetDevicePoint() public static method

public static GetDevicePoint ( SvgUnit x, SvgUnit y, ISvgRenderer renderer, SvgElement owner ) : PointF
x SvgUnit
y SvgUnit
renderer ISvgRenderer
owner SvgElement
return 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

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