Re: [mono-android] namespace System.Drawing in Xamarin API

2012-03-23 Thread Igor Russkih
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 m

Re: [mono-android] namespace System.Drawing in Xamarin API

2012-03-22 Thread Jonathan Pryor
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, Po

Re: [mono-android] namespace System.Drawing in Xamarin API

2012-03-22 Thread GigaNTes
Thank you. The main staff is C# developers. I tried to run our application (written on pure C#) in Xamarin environment. The classes that were not accepted are from System.Drawing namespace. I added OpenTK to project (as you adviced). But I cannot understand is it posible to use Color, Point, Rectan

Re: [mono-android] namespace System.Drawing in Xamarin API

2012-03-21 Thread Jonathan Pryor
On Mar 21, 2012, at 5:19 AM, GigaNTes wrote: > I'm trying to estimate such solution. I think there are too many factors for me to provide much help. :-) > We're considering two ways. > First way - 1)we make porting from .net code to Java and 2) this already > ported application to Android app.

Re: [mono-android] namespace System.Drawing in Xamarin API

2012-03-21 Thread GigaNTes
Thank you. Could help one more :) I'm trying to estimate such solution. We have several .net products. And we need to make porting of these apps to Android applications. We're considering two ways. First way - 1)we make porting from .net code to Java and 2) this already ported application to Androi

Re: [mono-android] namespace System.Drawing in Xamarin API

2012-03-20 Thread Jonathan Pryor
On Mar 20, 2012, at 12:14 PM, GigaNTes wrote: > I need to render a rectangle of the specific color. There are at least two different ways to do this, depending on how you want to use it. You could create a custom View [0] and override View.OnDraw() [1] to draw a rectangle; for example, ApiDemo [

Re: [mono-android] namespace System.Drawing in Xamarin API

2012-03-20 Thread GigaNTes
I need to render a rectangle of the specific color. How can I implement it by using System.Drawing.Rectangle and System.Drawing.Color classes from OpenTK.dll? Could you show example of such code? Thanks in advance -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/name

Re: [mono-android] namespace System.Drawing in Xamarin API

2012-03-20 Thread GigaNTes
Thank you very match for helping. Your advice was very helpfull -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/namespace-System-Drawing-in-Xamarin-API-tp5578365p5579377.html Sent from the Mono for Android mailing list archive at Nabble.com.

Re: [mono-android] namespace System.Drawing in Xamarin API

2012-03-19 Thread Jonathan Pryor
On Mar 19, 2012, at 5:09 PM, GigaNTes wrote: > I installed Android.Mono for developing android application. I don`t see > System.Drawing namespace inside VS2010. But these classes are presented here > http://androidapi.xamarin.com/ They're in OpenTK.dll, so you need to add an assembly reference

[mono-android] namespace System.Drawing in Xamarin API

2012-03-19 Thread GigaNTes
I installed Android.Mono for developing android application. I don`t see System.Drawing namespace inside VS2010. But these classes are presented here http://androidapi.xamarin.com/ Could someone explaine, can i use System.Drawing classes like Color, Rectangle, Point, Size for developing Android app