Java Color Alpha transparent(final Color color, final int alpha)

Here you can find the source of transparent(final Color color, final int alpha)

Description

transparent

License

Open Source License

Declaration

public static Color transparent(final Color color, final int alpha) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.awt.Color;

public class Main {
    public static Color transparent(final Color color, final int alpha) {
        return new Color(color.getRed(), color.getGreen(), color.getBlue(), alpha);
    }/*from w w w.  j av a 2s .co m*/
}

Related

  1. noAlpha(final Color col)
  2. overwriteAlpha(Color c, float alpha)
  3. premultiplyAlpha(Color fgColor, Color bgColor)
  4. setColorAlpha(Color c, int alpha)
  5. setColorAlpha(Color color, int alpha)
  6. transparentColor(Color color, int alpha)
  7. washColor(int red, int green, int blue, int alpha, int amountToWash)