Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

readme

  • Loading branch information...
commit a6262c7981e44aa87fef314b5d9c9c9a03f53aa7 1 parent 3870096
@cail authored
Showing with 42 additions and 0 deletions.
  1. +42 −0 README.md
View
42 README.md
@@ -0,0 +1,42 @@
+ AndroidDrawing
+==============
+ This is a draft porting layer between System.Drawing.Graphics and Android.Drawing.Canvas classes.
+
+ Its primary use is in MonoAndroid framework.
+
+ This layer allows to share the same primitive drawing code between .net Windows Mobile/Windows Phone platforms and Android platform.
+
+ AndroidDrawing also contains a trivial implementation of System.Graphics Pen, Color, Brush, Size, SizeF, Rectangle.
+
+ Usage
+==============
+
+ // Optional:
+ Graphics.DeviceDPI = android_dpi;
+
+ var g = new Graphics(android_canvas);
+
+ // Optional:
+ g.LineWidth = 2;
+ g.Flags = Android.Graphics.PaintFlags.AntiAlias;
+ g.DrawLine(new Pen(Color.Red), 0,0,100,100);
+ g.DrawText(new Pen(Color.Red), 0,0,100,100);
+ g.DrawString("Hello Android", new Font("serif", 12, FontStyle.Italic),
+ new Brush(Color.Black), new RectangleF(0,0,100,100));
+ g.DrawImage(new Bitmap(100,100), 0, 0);
+
+
+ Links
+==============
+
+ Issues: http://github.com/cail/AndroidDrawing/issues
+
+ Fork me on github: http://github.com/cail/AndroidDrawing
+
+ Author
+==============
+ http://github.com/cail
+
+ License
+==============
+ "MPL 1.1" (With fallback on your choice to GPL 2.0/LGPL 2.1)
Please sign in to comment.
Something went wrong with that request. Please try again.