jp.sourceforge.livez.images
クラス ImageConverter

java.lang.Object
  上位を拡張 jp.sourceforge.livez.images.ImageConverter

public final class ImageConverter
extends Object

簡易な画像変換用ユーティリティクラスです。

作成者:
杉澤 浩二

メソッドの概要
static void converte(File src, File dist, ImageType type)
           
static void converte(File src, File dist, ImageType type, double scale)
           
static void converte(File src, File dist, ImageType type, double sx, double sy)
           
static void converte(File src, File dist, ImageType type, int width, int height)
           
static void converte(String src, ImageType type)
           
static void converte(String src, ImageType type, double scale)
           
static void converte(String src, ImageType type, double sx, double sy)
           
static void converte(String src, ImageType type, int width, int height)
           
static void converte(String src, String dist, ImageType type)
           
static void converte(String src, String dist, ImageType type, double scale)
           
static void converte(String src, String dist, ImageType type, double sx, double sy)
           
static void converte(String src, String dist, ImageType type, int width, int height)
           
static BufferedImage converteBufferedImage(BufferedImage source, ImageType type)
          指定された画像を指定された変換方法によって変換した画像のコピーを返します。
static BufferedImage converteBufferedImage(BufferedImage source, ImageType type, double scale)
          指定された画像を指定された変換方法によって変換した画像のコピーを返します。
static BufferedImage converteBufferedImage(BufferedImage source, ImageType type, double sx, double sy)
          指定された画像を指定された変換方法によって変換した画像のコピーを返します。
static BufferedImage converteBufferedImage(BufferedImage source, ImageType type, int width, int height)
          指定された画像を指定された変換方法によって変換した画像のコピーを返します。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

メソッドの詳細

converte

public static void converte(String src,
                            ImageType type)
                     throws IllegalArgumentException,
                            IOException
例外:
IllegalArgumentException
IOException

converte

public static void converte(String src,
                            ImageType type,
                            double scale)
                     throws IllegalArgumentException,
                            IOException
例外:
IllegalArgumentException
IOException

converte

public static void converte(String src,
                            ImageType type,
                            double sx,
                            double sy)
                     throws IllegalArgumentException,
                            IOException
例外:
IllegalArgumentException
IOException

converte

public static void converte(String src,
                            ImageType type,
                            int width,
                            int height)
                     throws IllegalArgumentException,
                            IOException
例外:
IllegalArgumentException
IOException

converte

public static void converte(String src,
                            String dist,
                            ImageType type)
                     throws IllegalArgumentException,
                            IOException
例外:
IllegalArgumentException
IOException

converte

public static void converte(String src,
                            String dist,
                            ImageType type,
                            double scale)
                     throws IllegalArgumentException,
                            IOException
例外:
IllegalArgumentException
IOException

converte

public static void converte(String src,
                            String dist,
                            ImageType type,
                            double sx,
                            double sy)
                     throws IllegalArgumentException,
                            IOException
例外:
IllegalArgumentException
IOException

converte

public static void converte(String src,
                            String dist,
                            ImageType type,
                            int width,
                            int height)
                     throws IllegalArgumentException,
                            IOException
例外:
IllegalArgumentException
IOException

converte

public static void converte(File src,
                            File dist,
                            ImageType type)
                     throws IllegalArgumentException,
                            IOException
例外:
IllegalArgumentException
IOException

converte

public static void converte(File src,
                            File dist,
                            ImageType type,
                            double scale)
                     throws IllegalArgumentException,
                            IOException
例外:
IllegalArgumentException
IOException

converte

public static void converte(File src,
                            File dist,
                            ImageType type,
                            double sx,
                            double sy)
                     throws IllegalArgumentException,
                            IOException
例外:
IllegalArgumentException
IOException

converte

public static void converte(File src,
                            File dist,
                            ImageType type,
                            int width,
                            int height)
                     throws IllegalArgumentException,
                            IOException
例外:
IllegalArgumentException
IOException

converteBufferedImage

public static BufferedImage converteBufferedImage(BufferedImage source,
                                                  ImageType type)
                                           throws IllegalArgumentException
指定された画像を指定された変換方法によって変換した画像のコピーを返します。

パラメータ:
source - 画像
type - 画像形式
戻り値:
変換された画像
例外:
IllegalArgumentException

converteBufferedImage

public static BufferedImage converteBufferedImage(BufferedImage source,
                                                  ImageType type,
                                                  double scale)
                                           throws IllegalArgumentException
指定された画像を指定された変換方法によって変換した画像のコピーを返します。

パラメータ:
source - 画像
scale - 倍率
type - 画像形式
戻り値:
変換された画像
例外:
IllegalArgumentException

converteBufferedImage

public static BufferedImage converteBufferedImage(BufferedImage source,
                                                  ImageType type,
                                                  double sx,
                                                  double sy)
                                           throws IllegalArgumentException
指定された画像を指定された変換方法によって変換した画像のコピーを返します。

パラメータ:
source - 画像
sx - 横倍率
sy - 縦倍率
type - 画像形式
戻り値:
変換された画像
例外:
IllegalArgumentException

converteBufferedImage

public static BufferedImage converteBufferedImage(BufferedImage source,
                                                  ImageType type,
                                                  int width,
                                                  int height)
                                           throws IllegalArgumentException
指定された画像を指定された変換方法によって変換した画像のコピーを返します。

パラメータ:
source - 画像
width - 幅(ピクセル)
height - 高さ(ビクセル)
type - 画像形式
戻り値:
変換された画像
例外:
IllegalArgumentException


Copyright © 2005-2006 Kouji Sugisawa. All rights reserved.