Source

BWToolkit / NSImage+BWAdditions.h

Full commit
Brandon Walkin b48f0b7 












Brandon Walkin 100e138 
Brandon Walkin b48f0b7 
Brandon Walkin ac10541 
Brandon Walkin 100e138 
Brandon Walkin ac10541 
Brandon Walkin b48f0b7 
//
//  NSImage+BWAdditions.h
//  BWToolkit
//
//  Created by Brandon Walkin (www.brandonwalkin.com)
//  All code is provided under the New BSD license.
//

#import <Cocoa/Cocoa.h>

@interface NSImage (BWAdditions)

// Draw a solid color over an image - taking into account alpha. Useful for coloring template images.
- (NSImage *)bwTintedImageWithColor:(NSColor *)tint;

// Rotate an image 90 degrees clockwise or counterclockwise
- (NSImage *)bwRotateImage90DegreesClockwise:(BOOL)clockwise;

@end