public class GraphicsUtilities extends Object
| 构造器 | 说明 |
|---|---|
GraphicsUtilities() |
public static BufferedImage convertToBufferedImage(Image img)
public static BufferedImage createColorModelCompatibleImage(BufferedImage image)
public static BufferedImage createCompatibleImage(BufferedImage image)
public static BufferedImage createCompatibleImage(BufferedImage image, int width, int height)
public static BufferedImage createCompatibleImage(int width, int height)
public static BufferedImage createCompatibleTranslucentImage(int width, int height)
public static BufferedImage loadCompatibleImage(InputStream in) throws IOException
IOExceptionpublic static BufferedImage loadCompatibleImage(URL resource) throws IOException
IOExceptionpublic static BufferedImage toCompatibleImage(BufferedImage image)
public static BufferedImage createThumbnailFast(BufferedImage image, int newSize)
public static BufferedImage createThumbnailFast(BufferedImage image, int newWidth, int newHeight)
public static BufferedImage createThumbnail(BufferedImage image, int newSize)
public static BufferedImage createThumbnail(BufferedImage image, int newWidth, int newHeight)
public static int[] getPixels(BufferedImage img, int x, int y, int w, int h, int[] pixels)
public static void setPixels(BufferedImage img, int x, int y, int w, int h, int[] pixels)
public static void clear(Image img)
public static void tileStretchPaint(Graphics g, JComponent comp, BufferedImage img, Insets ins)
Copyright © 2019. All rights reserved.