alpha Color - Java 2D Graphics

Java examples for 2D Graphics:Color Alpha

Description

alpha Color

Demo Code


//package com.java2s;
import java.awt.Color;

public class Main {
    public static Color alphaColor(Color col, int alpha) {
        return new Color(col.getRed(), col.getGreen(), col.getBlue(), alpha);
    }//from  www.  j av  a  2 s . c  o m
}

Related Tutorials