this.blue = theBlue;
}
+ // components from 0 to 255
+ public PDFColor(int theRed, int theGreen, int theBlue) {
+ this(((double) theRed) / 255d * 2d - 1d, ((double) theGreen) / 255d * 2d - 1d, ((double) theBlue) / 255d * 2d - 1d);
+ }
+
public PDFColor(double theCyan, double theMagenta, double theYellow, double theBlack) {
//super(theNumber);//?
{
return(this.blue);
}
+ public int red255()
+ {
+ return (int) ((this.red + 1d) / 2d * 255d);
+ }
+ public int green255()
+ {
+ return (int) ((this.green + 1d) / 2d * 255d);
+ }
+ public int blue255()
+ {
+ return (int) ((this.blue + 1d) / 2d * 255d);
+ }
public double cyan()
{
return(this.cyan);