public static BufferedImage toBufferedImage(Image img)TYPE_INT_ARGB は、8 ビット RGB (RGB) タイプのイメージを表します。アルファレンダリングと透明度パラメータをサポートします クラスの alphaComposite.
{
//画像がBufferedImage型の場合
//その後、キャストのみ
//渡された画像はBufferedImage型であるため
if (img instanceof BufferedImage)
{
return (BufferedImage) img;
}
// BufferedImageを作成します
BufferedImage bufimage = new BufferedImage(img.getWidth(null),
img.getHeight(null), BufferedImage.TYPE_INT_ARGB);
bufimage を返します。
}
Please disable your ad blocker and refresh the window to use this website.