FoundationExtension
FoundationExtension is common Foundation/UIKit/Cocoa shortcuts and snippets collection.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
NSImage(Shortcuts) Category Reference

NSImage shortcuts. More...

#import <NSImage.h>

Instance Methods

(NSData *) - JPEGRepresentationWithCompressionFactor:
 JPEG representation of image using given compression factor. More...
 

Class Methods

(id) + imageWithContentsOfURL:
 Creates and returns an NSImage instance with the contents of the specified URL. More...
 
(id) + imageByReferencingURL:
 Creates and returns an NSImage instance and associates it with the specified URL. More...
 
(id) + imageWithPasteboard:
 Creates and returns an NSImage instance with data from the specified pasteboard. More...
 

Properties

NSData * PNGRepresentation
 PNG representation of image. More...
 
NSData * JPEGRepresentation
 JPEG representation of image. More...
 

Detailed Description

NSImage shortcuts.

Method Documentation

+ (id) imageByReferencingURL: (NSURL *)  url

Creates and returns an NSImage instance and associates it with the specified URL.

See also
initByReferencingURL:
+ (id) imageWithContentsOfURL: (NSURL *)  url

Creates and returns an NSImage instance with the contents of the specified URL.

See also
initWithContentsOfURL:
+ (id) imageWithPasteboard: (NSPasteboard *)  pasteboard

Creates and returns an NSImage instance with data from the specified pasteboard.

See also
initWithPasteboard:
- (NSData *) JPEGRepresentationWithCompressionFactor: (CGFloat)  compressionFactor

JPEG representation of image using given compression factor.

Property Documentation

- (NSData*) JPEGRepresentation
readnonatomicassign

JPEG representation of image.

- (NSData*) PNGRepresentation
readnonatomicassign

PNG representation of image.


The documentation for this category was generated from the following file: