Esempio 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;
 }
Esempio 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));
 }
Esempio 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));
 }