public class ImageUtil extends Object
| Modifier and Type | Method | Description |
|---|---|---|
static BufferedImage |
deepCopyImage(BufferedImage srcImage) |
BufferedImageのディープコピーを作成する ディープコピーなので元の画像データを変更しても、本メソッドによるコピー結果には反映されない
|
static void |
fillRectByTransparent(Graphics2D g,
int x,
int y,
int width,
int height) |
指定した矩形領域を透明色にする
|
static void |
fillShapeByTransparent(Graphics2D g,
Shape shape,
boolean eraseBorder) |
指定したShapeが示す領域を透明色にする
|
static BufferedImage |
loadImage(File file) |
画像を読み込む
|
static BufferedImage |
rotateImage(BufferedImage image,
int angleDeg) |
指定したimageを回転したimageを生成する
|
public static void fillRectByTransparent(Graphics2D g, int x, int y, int width, int height)
g - x - y - width - height - public static void fillShapeByTransparent(Graphics2D g, Shape shape, boolean eraseBorder)
g - shape - public static BufferedImage deepCopyImage(BufferedImage srcImage)
srcImage - public static BufferedImage rotateImage(BufferedImage image, int angleDeg)
image - angleDeg - public static BufferedImage loadImage(File file)
file - Copyright © 2018. All rights reserved.