Examples of ImageParameters


Examples of vash.ImageParameters

  @Test public void testLinGrad1DiagLeftFill()  { this.runTest("2111", new LinearGradient1(0, 0, 1, 1)); }
  @Test public void testLinGrad1DiagRightFill() { this.runTest("2112", new LinearGradient1(-1, -1, 0, 0)); }
  @Test public void testLinGrad1DiagNorthSouth(){ this.runTest("2113", new LinearGradient1(0, -1, 0, 1)); }
  @Test public void testLinGrad1DiagSouthNorth(){ this.runTest("2114", new LinearGradient1(0, 1, 0, -1)); }
  @Test public void testLinGrad1DiagNonSquareNorthSouth() {
    this.ip = new ImageParameters(256, 128);
    this.opt.setWidth(256);
    this.runTest("2115", new LinearGradient1(0, -1, 0, 1));
  }
View Full Code Here

Examples of vash.ImageParameters

    this.ip = new ImageParameters(256, 128);
    this.opt.setWidth(256);
    this.runTest("2115", new LinearGradient1(0, -1, 0, 1));
  }
  @Test public void testLinGrad1DiagNonSquareSouthNorth() {
    this.ip = new ImageParameters(256, 128);
    this.opt.setWidth(256);
    this.runTest("2116", new LinearGradient1(0, 1, 0, -1)); }
View Full Code Here

Examples of vash.ImageParameters

  @Test public void testLinGrad1DiagNorthSouthTiltedBig()  {
    this.runTest("2117", new LinearGradient1(0, -1, 1, 1)); }
  @Test public void testLinGrad1DiagNorthSouthTiltedSmall()  {
    this.runTest("2118", new LinearGradient1(0, -1, 0.09, 1)); }
  @Test public void testLinGrad1DiagNonSquareNorthSouthTiltedBig()  {
    this.ip = new ImageParameters(256, 128);
    this.opt.setWidth(256);
    this.runTest("2119", new LinearGradient1(0, -1, 1, 1)); }
View Full Code Here

Examples of vash.ImageParameters

  @Test public void testLinGrad1DiagNonSquareNorthSouthTiltedBig()  {
    this.ip = new ImageParameters(256, 128);
    this.opt.setWidth(256);
    this.runTest("2119", new LinearGradient1(0, -1, 1, 1)); }
  @Test public void testLinGrad1DiagNonSquareNorthSouthTiltedSmall()  {
    this.ip = new ImageParameters(256, 128);
    this.opt.setWidth(256);
    this.runTest("2120", new LinearGradient1(0, -1, 0.09, 1)); }
View Full Code Here

Examples of vash.ImageParameters

    for(int size = 16; size <= 2048; size *= 2) {
      // The image parameters encapsulate the data we need map the tree
      //  into a physical image and provides several size-dependent
      //  services the tree uses when generating images.
      ImageParameters ip = new ImageParameters(size, size);
      tree.setGenerationParameters(ip);

      // The tree provides images as a packed, unstrided array of 24-bit
      //  BGR pixels.
      byte[] pix = tree.generateCurrentFrame();
View Full Code Here

Examples of vash.ImageParameters

        tree.show(String.format("./gallery-%s/trees/%03d.txt", name, i));
      } catch(IOException e) {
        fail(e.toString());
      }

      ImageParameters ip = new ImageParameters(width, height);
      tree.setGenerationParameters(ip);
      byte[] actual = tree.generateCurrentFrame();
      TestOperationIntegration.compare(actual, width, height, String.format("./test/reference-%s/%03d.png", name, i), null);
     
      OutputParameters op = new OutputParameters(String.format("./gallery-%s/%03d.png", name, i), width, height);
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.