Package vash

Examples of vash.ImageParameters


  @Before
  public void setUp() throws Exception {
    this.opt = new Options();
    this.opt.setWidth(128);
    this.opt.setHeight(128);
    this.ip = new ImageParameters(this.opt.getWidth(), this.opt.getHeight());
  }
View Full Code Here


  @Test public void testLinGradDiagRightFill() { this.runTest("2102", new LinearGradient(-1, -1, 0, 0)); }
  // Note: the rest of these codify existing, non-optimal behavior
  @Test public void testLinGradDiagNorthSouth(){ this.runTest("2103", new LinearGradient(0, -1, 0, 1)); }
  @Test public void testLinGradDiagSouthNorth(){ this.runTest("2104", new LinearGradient(0, 1, 0, -1)); }
  @Test public void testLinGradDiagNonSquareNorthSouth() {
    this.ip = new ImageParameters(256, 128);
    this.opt.setWidth(256);
    this.runTest("2105", new LinearGradient(0, -1, 0, 1));
  }
View Full Code Here

    this.ip = new ImageParameters(256, 128);
    this.opt.setWidth(256);
    this.runTest("2105", new LinearGradient(0, -1, 0, 1));
  }
  @Test public void testLinGradDiagNonSquareSouthNorth() {
    this.ip = new ImageParameters(256, 128);
    this.opt.setWidth(256);
    this.runTest("2106", new LinearGradient(0, 1, 0, -1)); }
View Full Code Here

  @Test public void testLinGradDiagNorthSouthTiltedBig()  {
    this.runTest("2107", new LinearGradient(0, -1, 1, 1)); }
  @Test public void testLinGradDiagNorthSouthTiltedSmall()  {
    this.runTest("2108", new LinearGradient(0, -1, 0.09, 1)); }
  @Test public void testLinGradDiagNonSquareNorthSouthTiltedBig()  {
    this.ip = new ImageParameters(256, 128);
    this.opt.setWidth(256);
    this.runTest("2109", new LinearGradient(0, -1, 1, 1)); }
View Full Code Here

  @Test public void testLinGradDiagNonSquareNorthSouthTiltedBig()  {
    this.ip = new ImageParameters(256, 128);
    this.opt.setWidth(256);
    this.runTest("2109", new LinearGradient(0, -1, 1, 1)); }
  @Test public void testLinGradDiagNonSquareNorthSouthTiltedSmall()  {
    this.ip = new ImageParameters(256, 128);
    this.opt.setWidth(256);
    this.runTest("2110", new LinearGradient(0, -1, 0.09, 1)); }
View Full Code Here

  @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

    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

  @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

  @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

    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

TOP

Related Classes of vash.ImageParameters

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.