NSImage(DTUtilities) Category Reference
| Declared in | NSImage+DTUtilities.h |
Instance Methods
writeJPEGToFile:withCompressionFactor:atomically:
Encodes the receiver to JPEG using the given compression Factor
- (BOOL)writeJPEGToFile:(NSString *)path withCompressionFactor:(CGFloat)compressionFactor atomically:(BOOL)useAuxiliaryFileParameters
- path
The file path to write to
- compressionFactor
The compression factor between 0.0 and 1.0
- useAuxiliaryFile
If
YESthen the writing is atomically
Return Value
YES if the writing to disk was successful
Declared In
NSImage+DTUtilities.h