Declared in NSImage+DTUtilities.h

Overview

Utilities for NSImage.

Instance Methods

writeJPEGToFile:withCompressionFactor:atomically:

Encodes the receiver to JPEG using the given compression Factor

- (BOOL)writeJPEGToFile:(NSString *)path withCompressionFactor:(CGFloat)compressionFactor atomically:(BOOL)useAuxiliaryFile

Parameters

path

The file path to write to

compressionFactor

The compression factor between 0.0 and 1.0

useAuxiliaryFile

If YES then the writing is atomically

Return Value

YES if the writing to disk was successful

Declared In

NSImage+DTUtilities.h