On Apr 16, 2012, at 2:35 PM, hawk66 wrote: > Is there any more efficient way to draw the map?
Might I suggest Canvas.DrawPoints(float[], int, int, Paint)? http://androidapi.xamarin.com/?link=M%3aAndroid.Graphics.Canvas.DrawPoints(System.Single%5b%5d%2cSystem.Int32%2cSystem.Int32%2cAndroid.Graphics.Paint) You'll need to rework your logic to create an appropriately formatted float[] (which contains x/y pairs), and your existing algorithm isn't amenable to determining which Paint color to use for the entire span, but (sanely done) this should allow a number of Canvas.DrawPoints() calls which matches the number of colors in your image, as opposed to the 512² (262144) JNI invocations that your current approach would require. - Jon _______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid