net.rim.device.api.system
Class JPEGEncodedImage

java.lang.Object
  |
  +--net.rim.device.api.system.EncodedImage
        |
        +--net.rim.device.api.system.JPEGEncodedImage

public final class JPEGEncodedImage
extends EncodedImage

Represents an image encoded in the JPEG format.

Since:
JDE 3.7.0
See Also:
EncodedImage

Field Summary
static int FILETYPE_JFIF
          Constant indicating the JFIF file type.
static int FILETYPE_UNKNOWN
          Constant indicating an unknown file type.
static int FRAMETYPE_BASELINE
          Constant indicating the baseline jpeg mode.
static int FRAMETYPE_PROGRESSIVE
          Constant indicating the progressive jpg mode.
static int FRAMETYPE_SEQUENTIAL
          Constnat indicating the sequential jpeg mode .
 
Fields inherited from class net.rim.device.api.system.EncodedImage
DECODE_ALPHA, DECODE_NATIVE, DECODE_READONLY, IMAGE_TYPE_JPEG, IMAGE_TYPE_PNG, IMAGE_TYPE_WBMP
 
Method Summary
 int getAlphaType(int frameIndex)
          Gets the bitmap type for the given frame's alpha channel
 int getBitmapType(int frameIndex)
          Gets the bitmap type for the given frame.
 int getFileType()
          Returns an integer representing the file type.
 int getFrameType()
          Returns an integer representing the frame type.
 boolean isColor()
          Returns a boolean indicating whether or not the jpeg is color.
 
Methods inherited from class net.rim.device.api.system.EncodedImage
createEncodedImage, createEncodedImage, getBitmap, getBitmap, getData, getDecodeMode, getFrameCount, getFrameHeight, getFrameMonochrome, getFrameTransparency, getFrameWidth, getHeight, getImageType, getLength, getOffset, getScale, getScaledHeight, getScaledWidth, getSupportedMIMETypes, getWidth, hasTransparency, isMonochrome, setDecodeMode, setScale
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FILETYPE_UNKNOWN

public static final int FILETYPE_UNKNOWN
Constant indicating an unknown file type.
Since:
JDE 3.7.0

FILETYPE_JFIF

public static final int FILETYPE_JFIF
Constant indicating the JFIF file type.
Since:
JDE 3.7.0

FRAMETYPE_BASELINE

public static final int FRAMETYPE_BASELINE
Constant indicating the baseline jpeg mode.
Since:
JDE 3.7.0

FRAMETYPE_SEQUENTIAL

public static final int FRAMETYPE_SEQUENTIAL
Constnat indicating the sequential jpeg mode .
Since:
JDE 3.7.0

FRAMETYPE_PROGRESSIVE

public static final int FRAMETYPE_PROGRESSIVE
Constant indicating the progressive jpg mode.
Since:
JDE 3.7.0
Method Detail

isColor

public boolean isColor()
Returns a boolean indicating whether or not the jpeg is color.

Returns:
true if the jpeg is color, false otherwise.
Since:
JDE 3.7.0

getFileType

public int getFileType()
Returns an integer representing the file type.

One of FILETYPE_UNKNOWN, FILETYPE_JFIF.

Returns:
An integer representing the file type.
Since:
JDE 3.7.0

getFrameType

public int getFrameType()
Returns an integer representing the frame type.

One of FRAMETYPE_BASELINE, FRAMETYPE_SEQUENTIAL, FRAMETYPE_PROGRESSIVE.

Returns:
An integer representing the file type.
Since:
JDE 3.7.0

getBitmapType

public int getBitmapType(int frameIndex)
Description copied from class: EncodedImage
Gets the bitmap type for the given frame.
Overrides:
getBitmapType in class EncodedImage
Since:
JDE 3.7.0

getAlphaType

public int getAlphaType(int frameIndex)
Description copied from class: EncodedImage
Gets the bitmap type for the given frame's alpha channel
Overrides:
getAlphaType in class EncodedImage
Since:
JDE 3.7.0


Copyright 1999-2002 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.