< LynkeosImageFileWriter > Protocol Reference
[Graphic files access]

Protocol to conform for image file writers. More...

#import <LynkeosFileWriter.h>

Inheritance diagram for < LynkeosImageFileWriter >:

Inheritance graph
[legend]
Collaboration diagram for < LynkeosImageFileWriter >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

(void) - saveImageAtURL:withData:withPrecision:blackLevel:whiteLevel:withPlanes:width:lineWidth:height:metaData:
 Save the image data in a file at the given URL. Simple as that ;o).


Detailed Description

Protocol to conform for image file writers.

Member Function Documentation

- (void) saveImageAtURL: (NSURL *)  url
withData: (const void *const *const )  data
withPrecision: (floating_precision_t precision
blackLevel: (double)  black
whiteLevel: (double)  white
withPlanes: (u_short)  nPlanes
width: (u_short)  w
lineWidth: (u_short)  lineW
height: (u_short)  h
metaData: (NSDictionary *)  metaData 

Save the image data in a file at the given URL. Simple as that ;o).

Parameters:
url The URL of the file to save
data An array of pointers to the image color planes
precision Wether the data buffer contains floats or doubles
black The value of the black level in the source image
white The value of the white level in the source image
nPlanes The number of color planes.
w Width of sample
lineW The number of samples in each line, as it can be larger than w there may be spare at the end of the lines.
h Height of sample
metaData The image meta data The pixels in the data are already scaled to 0.0 for black and 1.0 for white. The parameters
black and
white give the value they had in the source image before scaling ; this can be used to save the original value (for example in floating point FITS).


The documentation for this protocol was generated from the following file:
Generated on Sat Mar 22 17:44:50 2008 for Lynkeos by  doxygen 1.5.4