Package com.itextpdf.text.pdf

Examples of com.itextpdf.text.pdf.CMYKColor


      case 1:
        return new GrayColor(c[0]);
      case 3:
        return new BaseColor(c[0], c[1], c[2]);
      case 4:
        return new CMYKColor(c[0], c[1], c[2], c[3]);
      }
      return null;
    }
View Full Code Here


        if (color instanceof FSRGBColor) {
            FSRGBColor rgb = (FSRGBColor) color;
            _color = new BaseColor(rgb.getRed(), rgb.getGreen(), rgb.getBlue());
        } else if (color instanceof FSCMYKColor) {
            FSCMYKColor cmyk = (FSCMYKColor) color;
            _color = new CMYKColor(cmyk.getCyan(), cmyk.getMagenta(), cmyk.getYellow(), cmyk.getBlack());
        } else {
            throw new RuntimeException("internal error: unsupported color class " + color.getClass().getName());
        }
    }
View Full Code Here

TOP

Related Classes of com.itextpdf.text.pdf.CMYKColor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.