// Create view public override void ViewDidLoad() { base.ViewDidLoad (); image = UIImage.FromFile("image.jpg"); imageView = new GPUImageView(new RectangleF(0,0,480,320)); imageView.ContentMode = UIViewContentMode.ScaleToFill; View = imageView; // Trick to display the image initially // TODO: Have the right size applySepiaFilter(0f); UIButton button = new GlassButton(new RectangleF(0,0,96,32)); button.SetTitle("Sepia!", UIControlState.Normal); button.TouchUpInside += (object sender, EventArgs e) => { applySepiaFilter(0.9f); }; View.AddSubview (button); }
// Create view public override void ViewDidLoad() { base.ViewDidLoad(); image = UIImage.FromFile("image.jpg"); imageView = new GPUImageView(new RectangleF(0, 0, 480, 320)); imageView.ContentMode = UIViewContentMode.ScaleToFill; View = imageView; // Trick to display the image initially // TODO: Have the right size applySepiaFilter(0f); UIButton button = new GlassButton(new RectangleF(0, 0, 96, 32)); button.SetTitle("Sepia!", UIControlState.Normal); button.TouchUpInside += (object sender, EventArgs e) => { applySepiaFilter(0.9f); }; View.AddSubview(button); }