Package org.apache.sanselan.common

Examples of org.apache.sanselan.common.BinaryOutputStream.write2Bytes()


      }

      { // Image Descriptor.
        bos.write(IMAGE_SEPARATOR);
        bos.write2Bytes(0); // Image Left Position
        bos.write2Bytes(0); // Image Top Position
        bos.write2Bytes(width); // Image Width
        bos.write2Bytes(height); // Image Height

        {
          boolean LocalColorTableFlag = true;
View Full Code Here


      { // Image Descriptor.
        bos.write(IMAGE_SEPARATOR);
        bos.write2Bytes(0); // Image Left Position
        bos.write2Bytes(0); // Image Top Position
        bos.write2Bytes(width); // Image Width
        bos.write2Bytes(height); // Image Height

        {
          boolean LocalColorTableFlag = true;
          // boolean LocalColorTableFlag = false;
View Full Code Here

      { // Image Descriptor.
        bos.write(IMAGE_SEPARATOR);
        bos.write2Bytes(0); // Image Left Position
        bos.write2Bytes(0); // Image Top Position
        bos.write2Bytes(width); // Image Width
        bos.write2Bytes(height); // Image Height

        {
          boolean LocalColorTableFlag = true;
          // boolean LocalColorTableFlag = false;
          boolean InterlaceFlag = false;
View Full Code Here

      // first, right record version record
      bos.write(IPTC_RECORD_TAG_MARKER);
      bos.write(IPTC_APPLICATION_2_RECORD_NUMBER);
      bos.write(IPTC_TYPE_RECORD_VERSION.type); // record version record
                            // type.
      bos.write2Bytes(2); // record version record size
      bos.write2Bytes(2); // record version value

      // make a copy of the list.
      elements = new ArrayList(elements);
View Full Code Here

      bos.write(IPTC_RECORD_TAG_MARKER);
      bos.write(IPTC_APPLICATION_2_RECORD_NUMBER);
      bos.write(IPTC_TYPE_RECORD_VERSION.type); // record version record
                            // type.
      bos.write2Bytes(2); // record version record size
      bos.write2Bytes(2); // record version value

      // make a copy of the list.
      elements = new ArrayList(elements);

      // sort the list. Records must be in numerical order.
View Full Code Here

        byte recordData[] = element.value.getBytes("ISO-8859-1");
        if (!new String(recordData, "ISO-8859-1").equals(element.value))
          throw new ImageWriteException(
              "Invalid record value, not ISO-8859-1");

        bos.write2Bytes(recordData.length);
        bos.write(recordData);
      }

      blockData = baos.toByteArray();
    }
View Full Code Here

    { // write BitmapInfoHeader
      bos.write4Bytes(BITMAP_INFO_HEADER_SIZE); // Bitmap Info Header Size
      bos.write4Bytes(width); // width
      bos.write4Bytes(height); // height
      bos.write2Bytes(1); // Number of Planes
      bos.write2Bytes(writer.getBitsPerPixel()); // Bits Per Pixel

      bos.write4Bytes(BI_RGB); // Compression
      bos.write4Bytes(imagedata.length); // Bitmap Data Size
      bos.write4Bytes(0); // HResolution
View Full Code Here

    { // write BitmapInfoHeader
      bos.write4Bytes(BITMAP_INFO_HEADER_SIZE); // Bitmap Info Header Size
      bos.write4Bytes(width); // width
      bos.write4Bytes(height); // height
      bos.write2Bytes(1); // Number of Planes
      bos.write2Bytes(writer.getBitsPerPixel()); // Bits Per Pixel

      bos.write4Bytes(BI_RGB); // Compression
      bos.write4Bytes(imagedata.length); // Bitmap Data Size
      bos.write4Bytes(0); // HResolution
      bos.write4Bytes(0); // VResolution
View Full Code Here

            { // Image Descriptor.
                bos.write(IMAGE_SEPARATOR);
                bos.write2Bytes(0); // Image Left Position
                bos.write2Bytes(0); // Image Top Position
                bos.write2Bytes(width); // Image Width
                bos.write2Bytes(height); // Image Height

                {
                    boolean LocalColorTableFlag = true;
                    // boolean LocalColorTableFlag = false;
                    boolean InterlaceFlag = false;
View Full Code Here

        bos.write4Bytes(bitmapPixelsOffset);

        bos.write4Bytes(56);
        bos.write4Bytes(Width);
        bos.write4Bytes(Height / 2);
        bos.write2Bytes(Planes);
        bos.write2Bytes(BitCount);
        bos.write4Bytes(Compression);
        bos.write4Bytes(SizeImage);
        bos.write4Bytes(XPelsPerMeter);
        bos.write4Bytes(YPelsPerMeter);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.