Skip to content

Instantly share code, notes, and snippets.

@blounty
blounty / Android-CustomMapRenderer.cs
Created February 17, 2015 04:59
Create mapping apps that have amazingly cool custom map tiles with Xamarin.Forms
using System;
using Xamarin.Forms.Maps.Android;
using Android.Gms.Maps;
using Android.Gms.Maps.Model;
using Xamarin.Forms;
using CustomMapTiles;
using CustomMapTiles.Droid.Renderers;
[assembly: ExportRenderer (typeof (CustomMap), typeof (CustomMapRenderer))]
namespace CustomMapTiles.Droid.Renderers
@Redth
Redth / Xamarin.Flurry.cs
Created May 9, 2013 19:04
Flurry analytics for Xamarin.iOS, Xamarin.Android, Windows Phone
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#if MONODROID
using Android.Telephony;
#endif
#if MONOTOUCH
using MonoTouch.Foundation;
@nicwise
nicwise / scale.cs
Last active November 13, 2018 08:17
Scale and Rotate an image in iOS / MonoTouch, using the EXIF data
//MIT license
public static UIImage ScaleImage(UIImage image, int maxSize)
{
UIImage res;
using (CGImage imageRef = image.CGImage)
{
CGImageAlphaInfo alphaInfo = imageRef.AlphaInfo;