Package org.apache.fop.datatypes

Examples of org.apache.fop.datatypes.ColorSpace


  this.m_width = headermap[wpos]+headermap[wpos+1]*256+headermap[wpos+2]*256*256+headermap[wpos+3]*256*256*256;
  this.m_height = headermap[hpos]+headermap[hpos+1]*256+headermap[hpos+2]*256*256+headermap[hpos+3]*256*256*256;

  int imagestart =headermap[10]+headermap[11]*256+headermap[12]*256*256+headermap[13]*256*256*256;
  this.m_bitsPerPixel=headermap[28];
  this.m_colorSpace = new ColorSpace(ColorSpace.DEVICE_RGB);
  int bytes;
  if ( this.m_bitsPerPixel == 1 )
    bytes = (this.m_width + 7) / 8;
  else if ( this.m_bitsPerPixel == 24 )
    bytes = this.m_width * 3;
 
View Full Code Here


 
  private PDFNumber pdfNumber = new PDFNumber();
 
  public PDFColor(org.apache.fop.datatypes.ColorType theColor)
  {
    this.colorSpace = new ColorSpace(ColorSpace.DEVICE_RGB);
    //super(theNumber)
    this.red  =  (double)theColor.red();
    this.green = (double)theColor.green();
    this.blue  = (double)theColor.blue();
   
View Full Code Here

   
  }

  public PDFColor(double theRed, double theGreen, double theBlue) {
    //super(theNumber);
    this.colorSpace = new ColorSpace(ColorSpace.DEVICE_RGB);

    this.red = theRed;
    this.green = theGreen;
    this.blue = theBlue;
  }
View Full Code Here

  }
 
  public PDFColor(double theCyan, double theMagenta, double theYellow, double theBlack) {
    //super(theNumber);//?
   
    this.colorSpace = new ColorSpace(ColorSpace.DEVICE_CMYK);
   
    this.cyan = theCyan;
    this.magenta = theMagenta;
    this.yellow = theYellow;
    this.black = theBlack;
View Full Code Here

    PDFFunction myfunky;
    PDFFunction myfunc;
    Vector theCzero;
    Vector theCone;
    PDFPattern myPattern;
    ColorSpace theColorSpace;
    double interpolation = (double) 1.000;
    Vector theFunctions = new Vector();

    int currentPosition;
    int lastPosition = theColors.size()-2;
View Full Code Here

    protected void loadImage() throws FopImageException {
        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        ByteArrayOutputStream iccStream = new ByteArrayOutputStream();
        InputStream inStream;
        this.m_colorSpace = new ColorSpace(ColorSpace.DEVICE_UNKNOWN);
        byte[] readBuf = new byte[4096];
        int bytes_read;
        int index = 0;
        boolean cont = true;
View Full Code Here

        TempImage(int width, int height, byte[] result,
                  byte[] mask) throws FopImageException {
            this.m_height = height;
            this.m_width = width;
            this.m_bitsPerPixel = 8;
            this.m_colorSpace = new ColorSpace(ColorSpace.DEVICE_RGB);
            // this.m_isTransparent = false;
            // this.m_bitmapsSize = this.m_width * this.m_height * 3;
            this.m_bitmaps = result;
            this.m_mask = mask;
        }
View Full Code Here

        PDFFunction myfunky;
        PDFFunction myfunc;
        Vector theCzero;
        Vector theCone;
        PDFPattern myPattern;
        ColorSpace theColorSpace;
        double interpolation = (double)1.000;
        Vector theFunctions = new Vector();

        int currentPosition;
        int lastPosition = theColors.size() - 1;
View Full Code Here

        PDFFunction myfunky;
        PDFFunction myfunc;
        Vector theCzero;
        Vector theCone;
        PDFPattern myPattern;
        ColorSpace theColorSpace;
        double interpolation = (double) 1.000;
        Vector theFunctions = new Vector();

        int currentPosition;
        int lastPosition = theColors.size()-1;
View Full Code Here

            PDFColor color2 = new PDFColor(c2.getRed(), c2.getGreen(), c2.getBlue());
            someColors.addElement(color2);

            PDFFunction myfunc = this.pdfDoc.makeFunction(2, theDomain, null, color1.getVector(), color2.getVector(), 1.0);

            ColorSpace aColorSpace = new ColorSpace(ColorSpace.DEVICE_RGB);
            PDFPattern myPat = this.pdfDoc.createGradient(false, aColorSpace,
                           someColors, null, theCoords);
            currentStream.write(myPat.getColorSpaceOut(fill));

        } else if(paint instanceof TexturePaint) {
View Full Code Here

TOP

Related Classes of org.apache.fop.datatypes.ColorSpace

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.