Examples of DirectColorModel


Examples of java.awt.image.DirectColorModel

    harness.check(dest.getWidth(), 25);
    harness.check(dest.getColorModel(), img.getColorModel());
   
    // Try a different colour model
    img = new BufferedImage(25, 40, BufferedImage.TYPE_INT_RGB);
    DirectColorModel cm = new DirectColorModel(16, 0x0f00, 0x00f0, 0x000f);
    dest = op.createCompatibleDestImage(img, cm);
   
    harness.check(dest.getHeight(), 40);
    harness.check(dest.getWidth(), 25);
    harness.check(dest.getColorModel(), cm);
View Full Code Here

Examples of java.awt.image.DirectColorModel

    harness.check(dest.getWidth(), 25);
    harness.check(dest.getColorModel(), img.getColorModel());
   
    // Try a different colour model
    img = new BufferedImage(25, 40, BufferedImage.TYPE_INT_RGB);
    DirectColorModel cm = new DirectColorModel(16, 0x0f00, 0x00f0, 0x000f);
    dest = op.createCompatibleDestImage(img, cm);
   
    harness.check(dest.getHeight(), 40);
    harness.check(dest.getWidth(), 25);
    harness.check(dest.getColorModel(), cm);
View Full Code Here

Examples of java.awt.image.DirectColorModel

    harness.check(dest.getWidth(), 25);
    harness.check(dest.getColorModel(), img.getColorModel());
   
    // Try a different colour model
    img = new BufferedImage(25, 40, BufferedImage.TYPE_INT_RGB);
    DirectColorModel cm = new DirectColorModel(16, 0x0f00, 0x00f0, 0x000f);
    dest = op.createCompatibleDestImage(img, cm);
   
    harness.check(dest.getHeight(), 40);
    harness.check(dest.getWidth(), 25);
    harness.check(dest.getColorModel(), cm);
View Full Code Here

Examples of java.awt.image.DirectColorModel

  }
 
  public void test_int_rgb(TestHarness harness)
  {
    BufferedImage img = new BufferedImage(10, 10, BufferedImage.TYPE_INT_RGB);
    harness.check(img.getColorModel().equals(new DirectColorModel(24, 0xff0000,
                                                                  0xff00,
                                                                  0xff)));
    harness.check(img.getSampleModel().equals(new SinglePixelPackedSampleModel(DataBuffer.TYPE_INT,
                                                                               10, 10,
                                                                               new int[]{0xff0000,
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.