IBM Toolkit
for MPEG-4

player
Interface PlayerScreenCapture


public interface PlayerScreenCapture

MPEG-4 Player Screen Capture interface.


Field Summary
static java.lang.String FORMAT_BMP
          Windows BMP format name
static java.lang.String FORMAT_JPG
          JPG format name
static java.lang.String FORMAT_PNG
          PNG format name
 
Method Summary
 int getHeight()
          Gets the height of the screen captured.
 int[] getPixels()
          Gets the array of pixels captured from the screen - ARGB format.
 int getWidth()
          Gets the width of the screen captured.
 void write(java.io.OutputStream os)
          Write the pixels array to the designated output stream in BMP format.
 void write(java.lang.String formatName, java.io.OutputStream os)
          Write the pixels array to the designated output stream in the requested format.
 

Field Detail

FORMAT_BMP

public static final java.lang.String FORMAT_BMP
Windows BMP format name

See Also:
Constant Field Values

FORMAT_JPG

public static final java.lang.String FORMAT_JPG
JPG format name

See Also:
Constant Field Values

FORMAT_PNG

public static final java.lang.String FORMAT_PNG
PNG format name

See Also:
Constant Field Values
Method Detail

getPixels

public int[] getPixels()
Gets the array of pixels captured from the screen - ARGB format. This array is comprised of rows of pixels, where the size of each row is given by the width and number of rows by the height.

Returns:
Int array of pixels

getWidth

public int getWidth()
Gets the width of the screen captured.

Returns:
Width

getHeight

public int getHeight()
Gets the height of the screen captured.

Returns:
Height

write

public void write(java.io.OutputStream os)
           throws java.io.IOException
Write the pixels array to the designated output stream in BMP format. This format is always available; it is lossless.

Parameters:
os - The OutputStream to which the BMP formatted image pixels should be written.
Throws:
java.io.IOException

write

public void write(java.lang.String formatName,
                  java.io.OutputStream os)
           throws java.io.IOException
Write the pixels array to the designated output stream in the requested format. An IOException wil be thrown if the format is not available.

Parameters:
formatName - The format name for the format in which the image pixels should be written, i.e. on of the FORMAT_xxx
os - The OutputStream to which the formatted image pixels should be written.
Throws:
java.io.IOException

IBM Toolkit
for MPEG-4

© Copyright IBM Corp. 1998, 2006. All Rights Reserved.