Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UnderOS Image

The new simplified images processing API for the under-os project

Basically it's a wrapper over the UIImage and the CoreImage library to help me to deal with routine things like image picking, resizing and filtering

Basic Functionality

@image = UOS::Image.new(UIImage.alloc.imageWithName("test.png"))

@image.resize UOS::Screen.size
@image.filter(brightness: 0.5, contrast: 0.8)

Picking & Taking

To make things easier the UOS::Image class has two methods .take and .pick which will bring in the native iOS image picker/camera modules to quickly get you going

UOS::Image.take do |image|
  # captures the image from the camera
end

UOS::Image.pick do |image|
  # picks the image from the image picker
end

NOTE: UOS::Image.take will automatically fall back to UOS::Image.pick method if the device doesn't have a camera in it (like simulator)

Copyright & License

All code in this library is released under the terms of the MIT license

Copyright (C) 2013-14 Nikolay Nemshilov

About

The images processing library for under-os

Resources

Stars

3 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages