Skip to content

Instantly share code, notes, and snippets.

View jamesmundy's full-sized avatar

James Mundy jamesmundy

View GitHub Profile
@djad442
djad442 / MKMapViewZoomLevel.cs
Created March 8, 2013 08:36
MonoTouch MKMapView with Zoom Level Property
using System;
using MonoTouch.MapKit;
using MonoTouch.CoreLocation;
using System.Drawing;
using MonoTouch.Foundation;
namespace BinaryQuest
{
[Register("MKMapViewZoomLevel")]
public class MKMapViewZoomLevel : MKMapView
@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;