Skip to content

tww0003/NSImage-Resizing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NSImage+Resizing

NSImage category to make resizing and cropping images easy.

Instructions

Clone the repo and add the files to your project.
Import the category
#import "NSImage+Resizing.h"
To resize an Image:
NSImage *resized = [someImage resizeImageToNewSize:NSMakeSize(1024, 500)];
To crop an Image:
NSImage *cropped = [someImage cropImageToSize:NSMakeSize(1024, 500) fromPoint:NSZeroPoint];

License

MIT

About

An NSImage category that adds resizing and cropping to NSImage

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published