Free Support Forum - aspose.com

Having problem in colors

Hi Aspose Team,



for setting up colors in Rectangels i am not getting to many colors

so can u tell me how to get more colors in java.



Thanks & Regards



Luvy



Dear Luvy,

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

You can create new colors in this way.

//All values should be in a range 0-255

int red=50;

int green=253;

int blue=255;

int alpha=60; //For transparency

java.awt.Color newColor=new Color(red, green, blue, alpha);

thanks its working