Package net.sourceforge.jiu.data

Examples of net.sourceforge.jiu.data.MemoryGray8Image


        image = new MemoryBilevelImage(w, h);
      }
      else
      if (precision <= 8)
      {
        image = new MemoryGray8Image(w, h);
      }
      else
      if (precision == 16)
      {
        image = new MemoryGray16Image(w, h);
View Full Code Here


    PixelImage pimage = getImage();
    if (pimage == null)
    {
      if (maxSample < 256)
      {
        pimage = new MemoryGray8Image(WIDTH, HEIGHT);
      }
      else
      if (maxSample < 65536)
      {
        pimage = new MemoryGray16Image(WIDTH, HEIGHT);
View Full Code Here

        }
        default: // grayscale, 2, 4 or 8 bits per pixel
        {
          if (image == null)
          {
            image = new MemoryGray8Image(getBoundsWidth(), getBoundsHeight());
          }
          else
          {
            if (!(image instanceof Gray8Image))
            {
View Full Code Here

      setImage(paletted8Image);
    }
    else
    if (channels == 1 && depth == 8 && colorMode == COLOR_MODE_GRAYSCALE)
    {
      gray8Image = new MemoryGray8Image(width, height);
      setImage(gray8Image);
    }
    else
    {
      throw new IllegalArgumentException("Unknown image type in PSD file.");
View Full Code Here

TOP

Related Classes of net.sourceforge.jiu.data.MemoryGray8Image

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.