Repository navigation
Splat 0.3.0
What's New
Resource Loading (#13)
Now, you can load resource bitmaps via a name
var defaultUser = await BitmapLoader.Current.LoadByResource("defaultUser.png", null, null);For Android, you can do one of two things, either cast the resource to string:
var defaultUser = await BitmapLoader.Current.LoadByResource(R.Drawable.DefaultUser.ToString(), null, null);or, you can use the name of a Drawable:
var defaultUser = await BitmapLoader.Current.LoadByResource("DefaultUser", null, null);Geometry Extensions (#14)
Splat now ports over GitHub's Archimedes so that you can do cross-platform geometry manipulation. These are implemented as extension methods on Point, Rect, and Size:
var pt1 = new PointF(0.0f, 0.0f);
var pt2 = new PointF(5.0f, 5.0f);
pt1.DistanceTo(pt2);
>>> 7.07f