Just in case this'll be useful for somebody, here is my (draft) port of System.Drawing.Graphics to Android.Graphics.Canvas:
https://github.com/cail/AndroidDrawing This porting layer allows me to reuse existing .net drawing logic (which uses System.Drawing.Graphics) inside of monoandroid port of my application. Igor On Thu, Mar 22, 2012 at 8:41 PM, Jonathan Pryor <j...@xamarin.com> wrote: > On Mar 22, 2012, at 12:24 PM, GigaNTes wrote: > > But I cannot understand is it posible to use Color, Point, Rectangle, > Size classes (supplied by OpenTK) > > My guess is that what you _really_ want is System.Drawing.Graphics, which > has all the methods for drawing in .NET (and in turns uses Color, Point, > Rectangle, etc.). Unfortunately, System.Drawing.Graphics is not currently > provided in Mono for Android. > > OpenTK.dll provides the Point and Rectangle types for methods such as > OpenTK.Graphics.ES20.GL.Viewport(Rectangle): > > > http://androidapi.xamarin.com/index.aspx?link=M%3aOpenTK.Graphics.ES20.GL.Viewport(System.Drawing.Rectangle) > > System.Drawing.Graphics is not currently exposed, so anything using that > type will need to be rewritten atop either OpenTK or Android.Graphics, or > you'll need to write your own System.Drawing.Graphics type which is > implemented atop OpenTK or Android.Graphics. > > - Jon > > _______________________________________________ > Monodroid mailing list > Monodroid@lists.ximian.com > > UNSUBSCRIBE INFORMATION: > http://lists.ximian.com/mailman/listinfo/monodroid >
_______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid