Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 public static RectangleF ToEtoF(this s.DrawingRectangleF value)
 {
     return(new RectangleF((float)value.X, (float)value.Y, (float)value.Width, (float)value.Height));
 }
Ejemplo n.º 3
0
 public static Rectangle ToEto(this s.DrawingRectangleF value)
 {
     return(new Rectangle((int)value.X, (int)value.Y, (int)value.Width, (int)value.Height));
 }