Skip to content

Commit

Permalink
More conversions
Browse files Browse the repository at this point in the history
  • Loading branch information
praeclarum committed Jan 20, 2015
1 parent 854a190 commit 7f2ee96
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Graphics.cs
Original file line number Diff line number Diff line change
Expand Up @@ -506,11 +506,15 @@ public static RectangleF ToRectangleF (this System.Drawing.Rectangle r)
{
return new RectangleF (r.X, r.Y, r.Width, r.Height);
}
#if UNIFIED
#if MONOTOUCH
public static RectangleF ToRectangleF (this CoreGraphics.CGRect r)
{
return new RectangleF ((float)r.X, (float)r.Y, (float)r.Width, (float)r.Height);
}
public static PointF ToPointF (this CoreGraphics.CGPoint r)
{
return new PointF ((float)r.X, (float)r.Y);
}
#endif

public static System.Drawing.Point GetCenter (this System.Drawing.Rectangle r)
Expand Down

0 comments on commit 7f2ee96

Please sign in to comment.