Package net.sourceforge.jiu.data

Examples of net.sourceforge.jiu.data.MemoryBilevelImage.clear()


   * that has been checked to be bilevel.
   */
  private void createBilevelFromGrayOrRgb(IntegerImage in)
  {
    MemoryBilevelImage out = new MemoryBilevelImage(in.getWidth(), in.getHeight());
    out.clear(BilevelImage.BLACK);
    for (int y = 0; y < in.getHeight(); y++)
    {
      for (int x = 0; x < in.getWidth(); x++)
      {
        if (in.getSample(0, x, y) != 0)
View Full Code Here


  private void createBilevelFromPaletted(Paletted8Image in)
  {
    Palette palette = in.getPalette();
    MemoryBilevelImage out = new MemoryBilevelImage(in.getWidth(), in.getHeight());
    out.clear(BilevelImage.BLACK);
    for (int y = 0; y < in.getHeight(); y++)
    {
      for (int x = 0; x < in.getWidth(); x++)
      {
        if (palette.getSample(RGBIndex.INDEX_RED, in.getSample(0, x, y)) != 0)
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.