javax.imageio

Class ImageWriteParam


public class ImageWriteParam
extends IIOParam

Field Summary

static int
MODE_COPY_FROM_METADATA
static int
MODE_DEFAULT
static int
MODE_DISABLED
static int
MODE_EXPLICIT
protected boolean
canOffsetTiles
protected boolean
canWriteCompressed
protected boolean
canWriteProgressive
protected boolean
canWriteTiles
protected int
compressionMode
protected float
compressionQuality
protected String
compressionType
protected String[]
compressionTypes
protected Locale
locale
protected Dimension[]
preferredTileSizes
protected int
progressiveMode
protected int
tileGridXOffset
protected int
tileGridYOffset
protected int
tileHeight
protected int
tileWidth
protected int
tilingMode
protected boolean
tilingSet

Fields inherited from class javax.imageio.IIOParam

controller, defaultController, destinationOffset, destinationType, sourceBands, sourceRegion, sourceXSubsampling, sourceYSubsampling, subsamplingXOffset, subsamplingYOffset

Constructor Summary

ImageWriteParam()
Creates an empty ImageWriteParam object.
ImageWriteParam(Locale locale)
Creates an ImageWriteParam object with the given locale.

Method Summary

boolean
canOffsetTiles()
boolean
canWriteCompressed()
boolean
canWriteProgressive()
boolean
canWriteTiles()
float
getBitRate(float quality)
int
getCompressionMode()
float
getCompressionQuality()
String[]
getCompressionQualityDescriptions()
float[]
getCompressionQualityValues()
String
getCompressionType()
String[]
getCompressionTypes()
Locale
getLocale()
String
getLocalizedCompressionTypeName()
Dimension[]
getPreferredTileSizes()
int
getProgressiveMode()
int
getTileGridXOffset()
int
getTileGridYOffset()
int
getTileHeight()
int
getTileWidth()
int
getTilingMode()
boolean
isCompressionLossless()
void
setCompressionMode(int mode)
void
setCompressionQuality(float quality)
void
setCompressionType(String compressionType)
void
setProgressiveMode(int mode)
void
setTiling(int tileWidth, int tileHeight, int tileGridXOffset, int tileGridYOffset)
void
setTilingMode(int mode)
void
unsetCompression()
void
unsetTiling()

Methods inherited from class javax.imageio.IIOParam

activateController, getController, getDefaultController, getDestinationOffset, getDestinationType, getSourceBands, getSourceRegion, getSourceXSubsampling, getSourceYSubsampling, getSubsamplingXOffset, getSubsamplingYOffset, hasController, setController, setDestinationOffset, setSourceBands, setSourceRegion, setSourceSubsampling

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Details

MODE_COPY_FROM_METADATA

public static final int MODE_COPY_FROM_METADATA

Field Value:
3


MODE_DEFAULT

public static final int MODE_DEFAULT

Field Value:
1


MODE_DISABLED

public static final int MODE_DISABLED

Field Value:
0


MODE_EXPLICIT

public static final int MODE_EXPLICIT

Field Value:
2


canOffsetTiles

protected boolean canOffsetTiles


canWriteCompressed

protected boolean canWriteCompressed


canWriteProgressive

protected boolean canWriteProgressive


canWriteTiles

protected boolean canWriteTiles


compressionMode

protected int compressionMode


compressionQuality

protected float compressionQuality


compressionType

protected String compressionType


compressionTypes

protected String[] compressionTypes


locale

protected Locale locale


preferredTileSizes

protected Dimension[] preferredTileSizes


progressiveMode

protected int progressiveMode


tileGridXOffset

protected int tileGridXOffset


tileGridYOffset

protected int tileGridYOffset


tileHeight

protected int tileHeight


tileWidth

protected int tileWidth


tilingMode

protected int tilingMode


tilingSet

protected boolean tilingSet

Constructor Details

ImageWriteParam

protected ImageWriteParam()
Creates an empty ImageWriteParam object. The subclass is responsible to initialize all fields.


ImageWriteParam

public ImageWriteParam(Locale locale)
Creates an ImageWriteParam object with the given locale.

Parameters:
locale - the locale to use for user visible strings

Method Details

canOffsetTiles

public boolean canOffsetTiles()


canWriteCompressed

public boolean canWriteCompressed()


canWriteProgressive

public boolean canWriteProgressive()


canWriteTiles

public boolean canWriteTiles()


getBitRate

public float getBitRate(float quality)


getCompressionMode

public int getCompressionMode()


getCompressionQuality

public float getCompressionQuality()


getCompressionQualityDescriptions

public String[] getCompressionQualityDescriptions()


getCompressionQualityValues

public float[] getCompressionQualityValues()


getCompressionType

public String getCompressionType()


getCompressionTypes

public String[] getCompressionTypes()


getLocale

public Locale getLocale()


getLocalizedCompressionTypeName

public String getLocalizedCompressionTypeName()


getPreferredTileSizes

public Dimension[] getPreferredTileSizes()


getProgressiveMode

public int getProgressiveMode()


getTileGridXOffset

public int getTileGridXOffset()


getTileGridYOffset

public int getTileGridYOffset()


getTileHeight

public int getTileHeight()


getTileWidth

public int getTileWidth()


getTilingMode

public int getTilingMode()


isCompressionLossless

public boolean isCompressionLossless()


setCompressionMode

public void setCompressionMode(int mode)


setCompressionQuality

public void setCompressionQuality(float quality)


setCompressionType

public void setCompressionType(String compressionType)


setProgressiveMode

public void setProgressiveMode(int mode)


setTiling

public void setTiling(int tileWidth,
                      int tileHeight,
                      int tileGridXOffset,
                      int tileGridYOffset)


setTilingMode

public void setTilingMode(int mode)


unsetCompression

public void unsetCompression()


unsetTiling

public void unsetTiling()


ImageWriteParam.java -- Copyright (C) 2004 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Classpath; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination. As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version.