Package java.awt.image

Examples of java.awt.image.ComponentSampleModel.createCompatibleSampleModel()


{
  public void test(TestHarness harness)
  {
    ComponentSampleModel m1 = new ComponentSampleModel(DataBuffer.TYPE_INT, 22,
            11, 1, 25, new int[] {1, 2}, new int[] {3, 4});
    SampleModel m2 = m1.createCompatibleSampleModel(33, 44);
    harness.check(m2 instanceof ComponentSampleModel);
    harness.check(m2.getDataType(), DataBuffer.TYPE_INT);
    harness.check(m2.getWidth(), 33);
    harness.check(m2.getHeight(), 44);
    harness.check(m2.getNumBands(), 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.