Examples of MemoryRGB24Image


Examples of net.sourceforge.jiu.data.MemoryRGB24Image

    RGBIntegerImage image = null;
    RGB24Image image24 = null;
    RGB48Image image48 = null;
    if (maxSample <= 255)
    {
      image24 = new MemoryRGB24Image(width, height);
      image = image24;
      setImage(image);
    }
    else
    {
View Full Code Here

Examples of net.sourceforge.jiu.data.MemoryRGB24Image

    }
    if ((pg.getStatus() & ImageObserver.ABORT) != 0)
    {
      return null;
    }
    RGB24Image result = new MemoryRGB24Image(width, height);
    int offset = 0;
    for (int y = 0; y < height; y++)
    {
      for (int x = 0; x < width; x++)
      {
        int pixel = pixels[offset++] & 0xffffff;
        // TODO: store alpha value; requires some sort of
        // transparency channel data type yet to be implemented
        result.putSample(RGBIndex.INDEX_RED, x, y, pixel >> 16);
        result.putSample(RGBIndex.INDEX_GREEN, x, y, (pixel >> 8) & 0xff);
        result.putSample(RGBIndex.INDEX_BLUE, x, y, pixel & 0xff);
      }
    }
    return result;
  }
View Full Code Here

Examples of net.sourceforge.jiu.data.MemoryRGB24Image

          setImage(new MemoryPaletted8Image(getBoundsWidth(), getBoundsHeight(), palette));
          break;
        }
        case(24):
        {
          setImage(new MemoryRGB24Image(getBoundsWidth(), getBoundsHeight()));
          break;
        }
        // loadHeader would have thrown an exception for any other color depths
      }
    }
View Full Code Here

Examples of net.sourceforge.jiu.data.MemoryRGB24Image

        }
        case(16): // RGB direct color
        {
          if (image == null)
          {
            image = new MemoryRGB24Image(getBoundsWidth(), getBoundsHeight());
          }
          else
          {
            if (!(image instanceof RGB24Image))
            {
View Full Code Here

Examples of net.sourceforge.jiu.data.MemoryRGB24Image

    gray8Image = null;
    paletted8Image = null;
    rgb24Image = null;
    if (depth == 8 && colorMode == COLOR_MODE_RGB_TRUECOLOR)
    {
      rgb24Image = new MemoryRGB24Image(getBoundsWidth(), getBoundsHeight());
      setImage(rgb24Image);
    }
    else
    if (channels == 1 && depth == 8 && colorMode == 2)
    {
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.