Package java.awt.image

Examples of java.awt.image.MemoryImageSource


                    int pixel1 = tint & 0xffffff;
                    pMech[i] = (alpha << 24) | pixel1;
                }
            }

            image = comp.createImage(new MemoryImageSource(
                    EntityImage.IMG_WIDTH, EntityImage.IMG_HEIGHT, pMech, 0,
                    EntityImage.IMG_WIDTH));
            ecmShades.put(new Integer(tint), image);
        }
        return image;
View Full Code Here


                    int pixel1 = tint & 0xffffff;
                    pMech[i] = (alpha << 24) | pixel1;
                }
            }

            image = comp.createImage(new MemoryImageSource(
                    EntityImage.IMG_WIDTH, EntityImage.IMG_HEIGHT, pMech, 0,
                    EntityImage.IMG_WIDTH));
            ecmShades.put(new Integer(tint), image);
        }
        return image;
View Full Code Here

    if (haveDisplay) {
      if (multiTouch) {
        if (commandOptions.indexOf("-multitouch-sparshui-simulated") < 0) {
          int[] pixels = new int[1];
          Image image = Toolkit.getDefaultToolkit().createImage(
              new MemoryImageSource(1, 1, pixels, 0, 1));
          Cursor transparentCursor = Toolkit.getDefaultToolkit()
              .createCustomCursor(image, new Point(0, 0), "invisibleCursor");
          display.setCursor(transparentCursor);
        }
        actionManager = (ActionManager) Interface
View Full Code Here

      int i = (int) (x * len / (WIDTH));
      for (int y = 1; y <= HEIGHT; y++) {
        colormap[x + (HEIGHT - y) * WIDTH] = clr.get(i).getRGB();
      }
    }
    col_img = createImage(new MemoryImageSource(WIDTH, HEIGHT, colormap, 0,
        WIDTH));
    this.repaint();
    // mouseY = HEIGHT/2;
  }
View Full Code Here

      int i = (int) (x * len / (WIDTH));
      for (int y = 1; y <= HEIGHT; y++) {
        colormap[x + (HEIGHT - y) * WIDTH] = clr.get(i).getRGB();
      }
    }
    col_img = createImage(new MemoryImageSource(WIDTH, HEIGHT, colormap, 0,
        WIDTH));
    // mouseY = HEIGHT/2;
  }
View Full Code Here

    for (int x = 0; x < WIDTH; x++){
      for (int y = 1; y <= HEIGHT; y++){
        colormap[x + (HEIGHT - y)*WIDTH] = Color.HSBtoRGB((float) 0.0, (float) 0.0, ((float) y)/HEIGHT);
      }
    }
    col_img = createImage(new MemoryImageSource(WIDTH, HEIGHT, colormap, 0, WIDTH));
    mouseY = HEIGHT/2;
  }
View Full Code Here

    for (int x = 0; x < WIDTH; x++){
      for (int y = HEIGHT/2; y < HEIGHT; y++){
        colormap[x + y * WIDTH] = 0xFF << 24 | (col.getRed()*2*(HEIGHT-y)/HEIGHT) << 16 | (col.getGreen()*2*(HEIGHT-y)/HEIGHT) << 8 | (col.getBlue()*2*(HEIGHT-y)/HEIGHT);
      }
    }
    col_img = createImage(new MemoryImageSource(WIDTH, HEIGHT, colormap, 0, WIDTH));
    repaint();
  }
View Full Code Here

    for (int x = 0; x < WIDTH; x++){
      for (int y = 1; y <= HEIGHT; y++){
        colormap[x + (HEIGHT - y)*WIDTH] = Color.HSBtoRGB((float) 0.0, (float) 0.0, ((float) y)/HEIGHT);
      }
    }
    col_img = createImage(new MemoryImageSource(WIDTH, HEIGHT, colormap, 0, WIDTH));
    mouseY = HEIGHT/2;
  }
View Full Code Here

    for (int x = 0; x < WIDTH; x++){
      for (int y = HEIGHT/2; y < HEIGHT; y++){
        colormap[x + y * WIDTH] = 0xFF << 24 | (col.getRed()*2*(HEIGHT-y)/HEIGHT) << 16 | (col.getGreen()*2*(HEIGHT-y)/HEIGHT) << 8 | (col.getBlue()*2*(HEIGHT-y)/HEIGHT);
      }
    }
    col_img = createImage(new MemoryImageSource(WIDTH, HEIGHT, colormap, 0, WIDTH));
    repaint();
  }
View Full Code Here

    for (int x = 0; x < WIDTH; x++){
      for (int y = 1; y <= HEIGHT; y++){
        colormap[x + (HEIGHT - y)*WIDTH] = Color.HSBtoRGB(((float) x)/HEIGHT, ((float) y)/WIDTH, (float) 0.75);
      }
    }
    col = createImage(new MemoryImageSource(WIDTH, HEIGHT, colormap, 0, WIDTH));
  }
View Full Code Here

TOP

Related Classes of java.awt.image.MemoryImageSource

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.