org.dcm4che.image
Interface PixelDataWriter


public interface PixelDataWriter


Method Summary
 PixelDataDescription getPixelDataDescription()
          Retrieves the PixelDataDescription.
 void writePixelData()
          Writes the Pixel Data to an ImageOutputStream.
 void writePixelData(javax.imageio.stream.ImageOutputStream out)
          Writes the Pixel Data to an ImageOutputStream.
 java.nio.ByteBuffer writePixelDataToByteBuffer()
          Writes the Pixel Data to a ByteBuffer.
 

Method Detail

getPixelDataDescription

PixelDataDescription getPixelDataDescription()
Retrieves the PixelDataDescription.

Returns:
PixelDataDescription

writePixelDataToByteBuffer

java.nio.ByteBuffer writePixelDataToByteBuffer()
Writes the Pixel Data to a ByteBuffer. Please note that the implementation should not try to evaluate the actual sample values, to see if they are in the proper range. They are assumed to be correct.

Parameters:
writeOverlayData - Whether to write overlay data in the initialized sample array. This is ignored if this class was initialized specifying that there is no overlay data in the sample array.
Returns:
A ByteBuffer with the written Pixel Data stream.

writePixelData

void writePixelData()
                    throws java.io.IOException
Writes the Pixel Data to an ImageOutputStream. Please note that the implementation should not try to evaluate the actual sample values, to see if they are in the proper range. They are assumed to be correct.

Throws:
java.io.IOException - On I/O error

writePixelData

void writePixelData(javax.imageio.stream.ImageOutputStream out)
                    throws java.io.IOException
Writes the Pixel Data to an ImageOutputStream. Please note that the implementation should not try to evaluate the actual sample values, to see if they are in the proper range. They are assumed to be correct.

Parameters:
out - An alternative ImageOoutputStream to write to.
Throws:
java.io.IOException - On I/O error