Package org.apache.sanselan

Examples of org.apache.sanselan.ImageInfo


  public boolean dumpImageFile(PrintWriter pw, ByteSource byteSource)
      throws ImageReadException, IOException
  {
    pw.println("bmp.dumpImageFile");

    ImageInfo imageData = getImageInfo(byteSource, null);
    if (imageData == null)
      return false;

    imageData.toString(pw, "");

    pw.println("");

    return true;
  }
View Full Code Here


    else
      ColorType = ImageInfo.COLOR_TYPE_UNKNOWN;

    String compressionAlgorithm = ImageInfo.COMPRESSION_ALGORITHM_JPEG;

    ImageInfo result = new ImageInfo(FormatDetails, BitsPerPixel, Comments,
        Format, FormatName, Height, MimeType, NumberOfImages,
        PhysicalHeightDpi, PhysicalHeightInch, PhysicalWidthDpi,
        PhysicalWidthInch, Width, isProgressive, isTransparent,
        usesPalette, ColorType, compressionAlgorithm);
View Full Code Here

      throws ImageReadException, IOException
  {
    pw.println("tiff.dumpImageFile");

    {
      ImageInfo imageInfo = getImageInfo(byteSource);
      if (imageInfo == null)
        return false;

      imageInfo.toString(pw, "");
    }

    pw.println("");

    {
View Full Code Here

      break;
    default:
      compressionAlgorithm = ImageInfo.COMPRESSION_ALGORITHM_UNKNOWN;
    }

    ImageInfo result = new ImageInfo(FormatDetails, BitsPerPixel, Comments,
        Format, FormatName, Height, MimeType, NumberOfImages,
        PhysicalHeightDpi, PhysicalHeightInch, PhysicalWidthDpi,
        PhysicalWidthInch, Width, isProgressive, isTransparent,
        usesPalette, ColorType, compressionAlgorithm);
View Full Code Here

      throws ImageReadException, IOException
  {
    pw.println("gif.dumpImageFile");

    {
      ImageInfo fImageData = getImageInfo(byteSource);
      if (fImageData == null)
        return false;

      fImageData.toString(pw, "");
    }
    {
      ImageContents imageContents = readImageContents(byteSource);

      imageContents.dump(pw);
View Full Code Here

    default:
      compressionAlgorithm = ImageInfo.COMPRESSION_ALGORITHM_UNKNOWN;
      break;
    }

    ImageInfo result = new ImageInfo(formatDetails, bitsPerPixel, comments,
        format, formatName, height, mimeType, numberOfImages,
        physicalHeightDpi, physicalHeightInch, physicalWidthDpi,
        physicalWidthInch, width, isProgressive, isTransparent,
        usesPalette, colorType, compressionAlgorithm);
View Full Code Here

    try
    {
      pw.println("tiff.dumpImageFile");

      {
        ImageInfo imageData = getImageInfo(byteSource);
        if (imageData == null)
          return false;

        imageData.toString(pw, "");
      }

      pw.println("");

      // try
View Full Code Here

            + pngChunkIHDR.colorType);
      }

      String compressionAlgorithm = ImageInfo.COMPRESSION_ALGORITHM_PNG_FILTER;

      ImageInfo result = new PngImageInfo(FormatDetails, BitsPerPixel,
          comments, Format, FormatName, Height, MimeType,
          NumberOfImages, PhysicalHeightDpi, PhysicalHeightInch,
          PhysicalWidthDpi, PhysicalWidthInch, Width, isProgressive,
          isTransparent, usesPalette, ColorType,
          compressionAlgorithm, textChunks);
View Full Code Here

  }

  public boolean dumpImageFile(PrintWriter pw, ByteSource byteSource)
      throws ImageReadException, IOException
  {
    ImageInfo imageInfo = getImageInfo(byteSource);
    if (imageInfo == null)
      return false;

    imageInfo.toString(pw, "");

    {
      ArrayList chunks = readChunks(byteSource, null, false);
      {
        ArrayList IHDRs = filterChunks(chunks, IHDR);
View Full Code Here

       if (imageFormat == ImageFormat.IMAGE_FORMAT_UNKNOWN) {
         enforceUnreadableImageRestrictions(uri, response);
         return;
       }

       ImageInfo imageInfo = Sanselan.getImageInfo(response.getContentBytes(), uri.getPath());

       Boolean resizeRequested = isResizeRequested(request, response, imageInfo);

       // Return in case image can't be rewriten.
       if (!canRewrite(request, response, imageInfo, resizeRequested)) {
View Full Code Here

TOP

Related Classes of org.apache.sanselan.ImageInfo

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.