TIFFWriter
Objective-C
@interface TIFFWriter : NSObject
Swift
class TIFFWriter : NSObject
TIFF Writer.
For a striped TIFF, the FileDirectory setStripOffsets(NSArray) and setStripByteCounts(NSArray) methods are automatically set or adjusted based upon attributes including: rowsPerStrip imageHeight planarConfiguration samplesPerPixel
The Rasters calculateRowsPerStrip(int) and Rasters calculateRowsPerStrip(int, int) methods provide a mechanism for determining a FileDirectory rowsPerStrip setting.
-
Write a TIFF to a file
Declaration
Objective-C
+ (void)writeTiffWithFile:(NSString *)file andWriter:(TIFFByteWriter *)writer andImage:(TIFFImage *)tiffImage;
Swift
class func writeTiff(withFile file: String!, andWriter writer: TIFFByteWriter!, andImage tiffImage: TIFFImage!)
Parameters
file
file to create
writer
byte writer
tiffImage
TIFF Image
-
Write a TIFF to bytes
Declaration
Objective-C
+ (NSData *)writeTiffToDataWithWriter:(TIFFByteWriter *)writer andImage:(TIFFImage *)tiffImage;
Swift
class func writeTiffToData(with writer: TIFFByteWriter!, andImage tiffImage: TIFFImage!) -> Data!
Parameters
writer
byte writer
tiffImage
TIFF image
Return Value
tiff bytes
-
Write a TIFF to a byte writer
Declaration
Objective-C
+ (void)writeTiffWithWriter:(TIFFByteWriter *)writer andImage:(TIFFImage *)tiffImage;
Swift
class func writeTiff(with writer: TIFFByteWriter!, andImage tiffImage: TIFFImage!)
Parameters
writer
byte writer
tiffImage
TIFF image