com.sun.image.codec.jpeg
$B%$%s%?%U%'!<%9(B JPEGEncodeParam

$B$9$Y$F$N%9!<%Q!<%$%s%?%U%'!<%9(B:
Cloneable, JPEGDecodeParam

public interface JPEGEncodeParam
extends Cloneable, JPEGDecodeParam

JPEGEncodeParam $B$O!"(BJPEG $B%G!<%?%9%H%j!<%`$NId9f2=$N@)8f$KI,MW$J%F!<%V%k$*$h$S%*%W%7%g%s$r%+%W%;%k2=$7$^$9!#%Q%i%a!<%?$O!"Id9f2=MQ$K%"%W%j%1!<%7%g%s$K$h$C$FL@<(E*$K@_Dj$5$l$k$+!"$^$?$OJL$N(B JPEG $B%X%C%@$+$iFI$_ BufferedImage $B$NA`:n$r9T$&>l9g!"(Bcodec $B$OId9f2=$9$k(B JPEG COLOR_ID $B$r(B BufferedImage $B$N(B ColorModel $B$KBP1~$5$;$h$&$H$7$^$9$,!"$3$l$,>o$K2DG=$@$H$O8B$j$^$;$s(B ($B%G%U%)%k%H$N%^%C%T%s%0Nc$r0J2<$K<($7$^$9(B)$B!#%5%]!<%H$5$l$F$$$J$$JQ49$,I,MW$J>l9g$dIT@5$J%$%a!<%8%+%i!l9g!"%f!<%6$O%$%a!<%8%G!<%?$r4{CN$N(B ColorSpace $B$KJQ49$9$k$+!"%G!<%?$r%i%9%?$+$iId9f2=$9$kI,MW$,$"$j$^$9!#$J$*!"%i%9%?$+$iId9f2=$9$k>l9g!"%+%i! $BCm(B: $B0J2<$K5-:\$7$?%+%i!<(B ID $B$O!"(BJPEG codec $B$N%G!<%?=hM}$K1F6A$rM?$($kC1=c$JNs5sCM$G$9!#$J$*!"(BJPEG $B05=L$O$=$NDj5A>e!"?'$r6hJL$7$^$;$s!#$3$l$i$NCM$O!"(BJPEG $B%G!<%?05=L;~$N%R%s%H$H$7$F;H$o$l$^$9!#(BJPEG codec $B$O$3$l$i$NCM$r;H$C$F!"$h$j9b$$05=LN($N $BF0:n$NNc$r0J2<$K<($7$^$9!#$3$l$i$N%^%C%T%s%0$O>-MhJQ99$5$l$k2DG=@-$,$"$k$?$a!"(B@see JPEGImageEncoder.getDefaultParamBlock $B8F$S=P$7$r;H$C$F!"=hM}BP>]$N(B BufferedImage $B$KBP$9$kl9g!"%f!<%6$,%$%a!<%8$rL\E*$N%+%i!l9g!"(BAPI $B%W%m%0%i%^$O!"(BRaster $BFb$N%G!<%?$N%+%i!<(B ID $B$r;XDj$7$J$1$l$P$J$i$:!"%+%i! $BId9f2=(B: BufferedImage $B%?%$%W(B/$B%$%s%9%?%s%9(B JPEG ($BId9f2=$5$l$?(B) $B%+%i!<(B ID ======================== ======================= TYPE_GRAY COLOR_ID_GRAYSCALE TYPE_RGB COLOR_ID_YCbCr TYPE_YCbCr COLOR_ID_YCbCr TYPE_YCbCr/CS_PYCC COLOR_ID_PYCC TYPE_CMYK COLOR_ID_CMYK TYPE_RGB (alpha) COLOR_ID_YCbCrA TYPE_YCbCr (alpha) COLOR_ID_YCbCrA TYPE_YCbCr/CS_PYCC (alpha) COLOR_ID_PYCCA $B$=$NB>(B ** COLOR_ID_UNKNOWN BufferedImage $BJQ49$h$j$b>\:Y$J@)8f$r9T$&>l9g$O!"%f!<%6$O!"(BRaster $B$+$i%G!<%?$rId9f2=$7$J$1$l$P$J$j$^$;$s!#$3$N>l9g!"%G!<%?$KBP$7$F%+%i! APP0_MARKER $B$r4^$a$k$3$H$K$h$C$F(B JFIF $B%$%a!<%8$r5-=R$9$k>l9g$O!"Id9f2=$5$l$?(B COLOR_ID $B$O!"(BCOLOR_ID_UNKNOWN$B!"(BCOLOR_ID_GRAYSCALE$B!"(BCOLOR_ID_YCbCr$B!"(BCOLOR_ID_CMYK $B$N$&$A$N$I$l$+$G$9!#$[$+$N$9$Y$F$N%$%s%9%?%s%9$G$O!"(BImageformatException $B$,%9%m!<$5$l$^$9!#(B

$B=EMW(B: Alpha RGB BufferedImage $B$O!"M-8z$J(B JFIF $B%9%H%j!<%`$K%^%C%W$5$l$^$;$s!#(BJFIF $B%U%!%$%k$,I,MW$J>l9g$O!"Id9f2=$NA0$K(B Alpha $B$r=|$/I,MW$,$"$j$^$9!#(BAPP0 $B$,@_Dj$5$l$F$$$k$N$K(B Alpha $B$,=|$+$l$F$$$J$$$H!"(BImageFormatException $B$,%9%m!<$5$l$^$9!#(B

com.sun.image.codec.jpeg $B%Q%C%1!<%8Fb$N%/%i%9$O!"%3%"(B Java API $B$N0lIt$G$O$"$j$^$;$s!#$3$l$i$O!"(BSun $B$N(B JDK $B$*$h$S(B JRE $B$NG[I[$N0lIt$G$9!#$[$+$N%i%$%;%s%9J]M--MhE*$K$O!"F1Ey$N5!G=$,%3%"(B API $B$^$?$OI8=`$N3HD%5!G=$GMxMQ$G$-$k$h$&$K$J$kM=Dj$G$9!#(B


$B%U%#!<%k%I$N35MW(B
 
$B%$%s%?%U%'!<%9(B com.sun.image.codec.jpeg.JPEGDecodeParam $B$+$i7Q>5$7$?%U%#!<%k%I(B
APP0_MARKER, APP1_MARKER, APP2_MARKER, APP3_MARKER, APP4_MARKER, APP5_MARKER, APP6_MARKER, APP7_MARKER, APP8_MARKER, APP9_MARKER, APPA_MARKER, APPB_MARKER, APPC_MARKER, APPD_MARKER, APPE_MARKER, APPF_MARKER, COLOR_ID_CMYK, COLOR_ID_GRAY, COLOR_ID_PYCC, COLOR_ID_PYCCA, COLOR_ID_RGB, COLOR_ID_RGBA, COLOR_ID_RGBA_INVERTED, COLOR_ID_UNKNOWN, COLOR_ID_YCbCr, COLOR_ID_YCbCrA, COLOR_ID_YCbCrA_INVERTED, COLOR_ID_YCCK, COMMENT_MARKER, DENSITY_UNIT_ASPECT_RATIO, DENSITY_UNIT_DOTS_CM, DENSITY_UNIT_DOTS_INCH, NUM_COLOR_ID, NUM_DENSITY_UNIT, NUM_TABLES
 
$B%a%=%C%I$N35MW(B
 void addMarkerData(int marker, byte[] data)
          $B%^!<%+$K4XO"IU$1$i$l$?(B byte[] $B$NG[Ns$K(B data $B$rDI2C$7$^$9!#(B
 Object clone()
           
 void setACHuffmanComponentMapping(int component, int table)
          $B%3%s%]!<%M%s%H$H$=$N(B AC Huffman $B%F!<%V%k$H$N4V$N%^%C%T%s%0$r@_Dj$7$^$9!#(B
 void setACHuffmanTable(int tableNum, JPEGHuffmanTable huffTable)
          AC Huffman $B%3!<%G%#%s%0%F!<%V%k$N%$%s%G%C%/%9$r!";XDj$5$l$?%F!<%V%k$K@_Dj$7$^$9!#(B
 void setDCHuffmanComponentMapping(int component, int table)
          $B%3%s%]!<%M%s%H$H$=$N(B DC Huffman $B%F!<%V%k$H$N4V$N%^%C%T%s%0$r@_Dj$7$^$9!#(B
 void setDCHuffmanTable(int tableNum, JPEGHuffmanTable huffTable)
          DC Huffman $B%3!<%G%#%s%0%F!<%V%k$r!";XDj$5$l$?%F!<%V%k$X$N%$%s%G%C%/%9CM$K@_Dj$7$^$9!#(B
 void setDensityUnit(int unit)
          $B%T%/%;%k%5%$%:$NC10L$r@_Dj$7$^$9!#(B
 void setHorizontalSubsampling(int component, int subsample)
          $B;XDj$5$l$?%3%s%]!<%M%s%H$KBP$9$k?eJ?J}8~$N%5%V%5%s%W%k0x?t$r@_Dj$7$^$9!#(B
 void setImageInfoValid(boolean flag)
          ParamBlock $B$N%F!<%V%k>pJs$,M-8z$G$"$k$3$H$r<($9%U%i%0$r@_Dj$7$^$9!#(B
 void setMarkerData(int marker, byte[][] data)
          $B=PNO%G!<%?%9%H%j!<%`$K=q$-9~$^$l$k%^!<%+%G!<%?$r@_Dj$7$^$9!#(B
 void setQTable(int tableNum, JPEGQTable qTable)
          $BEO$5$l$?%$%s%G%C%/%9CM$G78?tNL;R2=%F!<%V%k$r@_Dj$7$^$9!#(B
 void setQTableComponentMapping(int component, int table)
          $B%3%s%]!<%M%s%H$H$=$NNL;R2=%F!<%V%k$H$N4V$N%^%C%T%s%0$r@_Dj$7$^$9!#(B
 void setQuality(float quality, boolean forceBaseline)
          $B8=:_%$%s%9%H!<%k$5$l$F$$$kNL;R2=%F!<%V%k$KBe$o$k!"?7$7$$NL;R2=%F!<%V%k$r@8@.$7$^$9!#(B
 void setRestartInterval(int restartInterval)
          $B:F5/F0$4$H$K(B MCU $B$r@_Dj$9$k$+!":F5/F0%^!<%+$,$J$$>l9g$K$O(B 0 $B$r@_Dj$7$^$9!#(B
 void setTableInfoValid(boolean flag)
          ParamBlock $B$N%$%a!<%8>pJs$NM-8z@-$r<($9%U%i%0$r@_Dj$7$^$9!#(B
 void setVerticalSubsampling(int component, int subsample)
          $BM?$($i$l$?%3%s%]!<%M%s%H$KBP$9$k?bD>J}8~$N%5%V%5%s%W%kMQ0x?t$r@_Dj$7$^$9!#(B
 void setXDensity(int density)
          $B?eJ?J}8~$N%T%/%;%kL)EY$r@_Dj$7$^$9!#(B
 void setYDensity(int density)
          $B?bD>J}8~$N%T%/%;%kL)EY$r@_Dj$7$^$9!#(B
 
$B%$%s%?%U%'!<%9(B com.sun.image.codec.jpeg.JPEGDecodeParam $B$+$i7Q>5$7$?%a%=%C%I(B
getACHuffmanComponentMapping, getACHuffmanTable, getACHuffmanTableForComponent, getDCHuffmanComponentMapping, getDCHuffmanTable, getDCHuffmanTableForComponent, getDensityUnit, getEncodedColorID, getHeight, getHorizontalSubsampling, getMarker, getMarkerData, getNumComponents, getQTable, getQTableComponentMapping, getQTableForComponent, getRestartInterval, getVerticalSubsampling, getWidth, getXDensity, getYDensity, isImageInfoValid, isTableInfoValid
 

$B%a%=%C%I$N>\:Y(B

clone

public Object clone()
$BDj5A(B:
$B%$%s%?%U%'!<%9(B JPEGDecodeParam $BFb$N(B clone

setHorizontalSubsampling

public void setHorizontalSubsampling(int component,
                                     int subsample)
$B;XDj$5$l$?%3%s%]!<%M%s%H$KBP$9$k?eJ?J}8~$N%5%V%5%s%W%k0x?t$r@_Dj$7$^$9!#%5%V%5%s%W%k0x?t$O!"8D!9$N=PNO%T%/%;%k$N@8@.$KI,MW$JF~NO%T%/%;%k?t$G$9(B (YCC $B$N>l9g$ODL>o(B 2)$B!#(B

$B%Q%i%a!<%?(B:
component - $B%3%s%]!<%M%s%H$r;XDj$9$k(B
subsample - $B%5%V%5%s%W%kMQ0x;R$r;XDj$9$k(B

setVerticalSubsampling

public void setVerticalSubsampling(int component,
                                   int subsample)
$BM?$($i$l$?%3%s%]!<%M%s%H$KBP$9$k?bD>J}8~$N%5%V%5%s%W%kMQ0x?t$r@_Dj$7$^$9!#%5%V%5%s%W%k0x?t$O!"8D!9$N=PNO%T%/%;%k$N@8@.$KI,MW$JF~NO%T%/%;%k?t$G$9(B (YCC $B$N>l9g$ODL>o(B 2)$B!#(B

$B%Q%i%a!<%?(B:
component - $B%3%s%]!<%M%s%H$r;XDj$9$k(B
subsample - $B%5%V%5%s%W%kMQ0x;R$r;XDj$9$k(B

setQTable

public void setQTable(int tableNum,
                      JPEGQTable qTable)
$BEO$5$l$?%$%s%G%C%/%9CM$G78?tNL;R2=%F!<%V%k$r@_Dj$7$^$9!#(BtableNum $B$O!"(B0 $B!A(B 3 $B$NHO0O$NCM$G$"$kI,MW$,$"$j$^$9!#(B

$B%Q%i%a!<%?(B:
tableNum - $B@_Dj$9$k%F!<%V%k$N%$%s%G%C%/%9(B

setDCHuffmanTable

public void setDCHuffmanTable(int tableNum,
                              JPEGHuffmanTable huffTable)
DC Huffman $B%3!<%G%#%s%0%F!<%V%k$r!";XDj$5$l$?%F!<%V%k$X$N%$%s%G%C%/%9CM$K@_Dj$7$^$9!#(B

$B%Q%i%a!<%?(B:
huffTable - $B%$%s%G%C%/%9(B tableNum $B$K3d$jEv$F$i$l$k(B JPEGHuffmanTable
tableNum - $B@_Dj$5$l$k%F!<%V%k$N%$%s%G%C%/%9(B
$BNc30(B:
IllegalArgumentException - tableNum $B$,HO0O30$N>l9g$K%9%m!<$5$l$k!#%$%s%G%C%/%9$O(B 0 $B!A(B 3 $B$NHO0O$NCM$G$"$kI,MW$,$"$k(B

setACHuffmanTable

public void setACHuffmanTable(int tableNum,
                              JPEGHuffmanTable huffTable)
AC Huffman $B%3!<%G%#%s%0%F!<%V%k$N%$%s%G%C%/%9$r!";XDj$5$l$?%F!<%V%k$K@_Dj$7$^$9!#(B

$B%Q%i%a!<%?(B:
huffTable - $B%$%s%G%C%/%9(B tableNum $B$K3d$jEv$F$i$l$k(B JPEGHuffmanTable
tableNum - $B@_Dj$5$l$k%F!<%V%k$N%$%s%G%C%/%9(B
$BNc30(B:
IllegalArgumentException - tableNum $B$,HO0O30$N>l9g$K%9%m!<$5$l$k!#%$%s%G%C%/%9$O(B 0 $B!A(B 3 $B$NHO0O$NCM$G$"$kI,MW$,$"$k(B

setDCHuffmanComponentMapping

public void setDCHuffmanComponentMapping(int component,
                                         int table)
$B%3%s%]!<%M%s%H$H$=$N(B DC Huffman $B%F!<%V%k$H$N4V$N%^%C%T%s%0$r@_Dj$7$^$9!#(B

$B%Q%i%a!<%?(B:
component - $B%^%C%T%s%0$r@_Dj$9$k%3%s%]!<%M%s%H(B
table - $B%3%s%]!<%M%s%H$G;HMQ$9$k(B DC Huffman $B%F!<%V%k(B

setACHuffmanComponentMapping

public void setACHuffmanComponentMapping(int component,
                                         int table)
$B%3%s%]!<%M%s%H$H$=$N(B AC Huffman $B%F!<%V%k$H$N4V$N%^%C%T%s%0$r@_Dj$7$^$9!#(B

$B%Q%i%a!<%?(B:
component - $B%^%C%T%s%0$r@_Dj$9$k%3%s%]!<%M%s%H(B
table - $B%3%s%]!<%M%s%H$G;HMQ$9$k(B AC Huffman $B%F!<%V%k(B

setQTableComponentMapping

public void setQTableComponentMapping(int component,
                                      int table)
$B%3%s%]!<%M%s%H$H$=$NNL;R2=%F!<%V%k$H$N4V$N%^%C%T%s%0$r@_Dj$7$^$9!#(B

$B%Q%i%a!<%?(B:
component - $B%^%C%T%s%0$r@_Dj$9$k%3%s%]!<%M%s%H(B
table - $B%3%s%]!<%M%s%H$G;HMQ$9$kNL;R2=%F!<%V%k(B

setImageInfoValid

public void setImageInfoValid(boolean flag)
ParamBlock $B$N%F!<%V%k>pJs$,M-8z$G$"$k$3$H$r<($9%U%i%0$r@_Dj$7$^$9!#Id9f2=$N:]$K%F!<%V%k$r4^$a$k$Y$-$+$I$&$+$r<($9$?$a$K;H$o$l$^$9!#(B


setTableInfoValid

public void setTableInfoValid(boolean flag)
ParamBlock $B$N%$%a!<%8>pJs$NM-8z@-$r<($9%U%i%0$r@_Dj$7$^$9!#Id9f2=$N:]$K%$%a!<%8%G!<%?$r5-=R$9$Y$-$+$I$&$+$r<($9$?$a$K;H$o$l$^$9!#(B


setMarkerData

public void setMarkerData(int marker,
                          byte[][] data)
$B=PNO%G!<%?%9%H%j!<%`$K=q$-9~$^$l$k%^!<%+%G!<%?$r@_Dj$7$^$9!#$3$l$K$h$j!"(BJPEParm $B%*%V%8%'%/%HFb$N4{B8$N%^!<%+%G!<%?$,$9$Y$F:o=|$5$l$^$9!#%G!<%?$r(B null $B$K@_Dj$7$F8F$S=P$7$r9T$&$3$H$K$h$C$F!"%G%U%)%k%H$N(B APP0 $B%^!<%+$N:o=|$K;H$&$3$H$,$G$-$^$9!#(B

$B%Q%i%a!<%?(B:
marker - $B%G!<%?$r@_Dj$9$k%^!<%+(B
data - $B=q$-9~$^$l$k?7$7$$%G!<%?%;%C%H(B

addMarkerData

public void addMarkerData(int marker,
                          byte[] data)
$B%^!<%+$K4XO"IU$1$i$l$?(B byte[] $B$NG[Ns$K(B data $B$rDI2C$7$^$9!#$3$l$K$h$j!"G[NsFb$N3F(B byte[] $B$KBP$7$F!"%^!<%+$N%$%s%9%?%s%9$N5-=R$,(B 1 $B$DDI2C$5$l$^$9!#(B

$B%Q%i%a!<%?(B:
marker - $B%$%s%9%?%s%9$rDI2C$9$k%^!<%+(B
data - $B5-=R$5$l$k%G!<%?(B

setRestartInterval

public void setRestartInterval(int restartInterval)
$B:F5/F0$4$H$K(B MCU $B$r@_Dj$9$k$+!":F5/F0%^!<%+$,$J$$>l9g$K$O(B 0 $B$r@_Dj$7$^$9!#(B

$B%Q%i%a!<%?(B:
restartInterval - $B:F5/F0%^!<%+$4$H$N(B MCU $B?t(B

setDensityUnit

public void setDensityUnit(int unit)
$B%T%/%;%k%5%$%:$NC10L$r@_Dj$7$^$9!#(BAPP0 $B%^!<%+$,5-=R$5$l$F$$$k>l9g$O!"$3$NCM$O(B APP0 $B%^!<%+$K%3%T!<$5$l$^$9!#$3$NCM$O!"(BJPEG $B%3!<%I$G$O;H$o$l$^$;$s!#(B


setXDensity

public void setXDensity(int density)
$B?eJ?J}8~$N%T%/%;%kL)EY$r@_Dj$7$^$9!#$3$NCM$O(B APP0 $B%^!<%+$K=q$-9~$^$l$^$9!#$3$NCM$O!"(BJPEG $B%3!<%I$G$O;H$o$l$^$;$s!#(B


setYDensity

public void setYDensity(int density)
$B?bD>J}8~$N%T%/%;%kL)EY$r@_Dj$7$^$9!#$3$NCM$O(B JFIF APP0 $B%^!<%+$K=q$-9~$^$l$^$9!#$3$NCM$O!"(BJPEG $B%3!<%I$G$O;H$o$l$^$;$s!#(B

$B%Q%i%a!<%?(B:
density - $B?bD>J}8~$N%T%/%;%kL)EY(B (@see JPEGParam.getDensityUnit$B$K5-=R$5$l$?C10L(B)

setQuality

public void setQuality(float quality,
                       boolean forceBaseline)
$B8=:_%$%s%9%H!<%k$5$l$F$$$kNL;R2=%F!<%V%k$KBe$o$k!"?7$7$$NL;R2=%F!<%V%k$r@8@.$7$^$9!#$^$?!"%3%s%]!<%M%s%H(B QTable $B$N%^%C%T%s%0$r99?7$7$F!"8=:_$NId9f2=$5$l$?(B COLOR_ID $B$N%G%U%)%k%H$K9g$o$;$^$9!#(B $B@8@.$5$l$kNL;R2=%F!<%V%k$NIJ $BIJl9g!"$*$h$S(B DCT $BFb$N;M $BI8=`%/%m%_%J%s%9NL;R2=%F!<%V%k$N%j%K%"$J;XI8CM$r!"0J2<$K<($7$^$9!#(B

$B%,%$%I%i%$%s(B: 0.75 $B9bIJ

$B%Q%i%a!<%?(B:
quality - 0.0 $B!A(B 1.0 $B$NHO0O$GL\E*$NIJforceBaseline - $B%Y!<%9%i%$%sNL;R2=%F!<%V%k$r6/@)$9$k(B


$B%P%0$d5!G=MW5a$NJs9p(B
Java $B$O!"JF9q$*$h$S$=$NB>$N9q$K$*$1$kJF9q(B Sun Microsystems, Inc. $B$N>&I8$b$7$/$OEPO?>&I8$G$9!#(B
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.