public ViewportF(DrawingRectangleF bounds) { this.X = bounds.X; this.Y = bounds.Y; this.Width = bounds.Width; this.Height = bounds.Height; this.MinDepth = 0.0f; this.MaxDepth = 1f; }
public static RectangleF ToEtoF(this s.DrawingRectangleF value) { return(new RectangleF((float)value.X, (float)value.Y, (float)value.Width, (float)value.Height)); }
public static Rectangle ToEto(this s.DrawingRectangleF value) { return(new Rectangle((int)value.X, (int)value.Y, (int)value.Width, (int)value.Height)); }