Examples of PixelControllerResize


Examples of com.neophob.sematrix.core.resize.PixelControllerResize

    }

    //create the device with specific size
    this.matrix = new MatrixData(ph.getDeviceXResolution(), ph.getDeviceYResolution());

    pixelControllerResize = new PixelControllerResize();
    pixelControllerResize.initAll();

    //create generators
    pixelControllerGenerator = new PixelControllerGenerator(ph, fileUtils, matrix, this.fps,
        sound, pixelControllerResize.getResize(ResizeName.PIXEL_RESIZE));
View Full Code Here

Examples of com.neophob.sematrix.core.resize.PixelControllerResize

      }
    }
   
    private void testWithResolution(int x, int y) {
      MatrixData matrix = new MatrixData(x,y);
      PixelControllerResize pcr = new PixelControllerResize();
      pcr.initAll();

      Generator g = new PassThruGen(matrix);
      Effect e = new PassThru(matrix);
      Mixer m = new Checkbox(matrix);
      ColorSet c = new ColorSet("test", new int[]{1,2,3});
      Visual v = new Visual(g,e,m,c);     

      for (IResize rsz: pcr.getAllResizers()) {
        BufferedImage bi = rsz.createImage(v.getBuffer(), matrix.getBufferXSize(), matrix.getBufferYSize());
        int[] b1 = rsz.getBuffer(bi, matrix.getDeviceXSize(), matrix.getDeviceYSize());
        int[] b2 = rsz.getBuffer(v.getBuffer(), matrix.getDeviceXSize(), matrix.getDeviceYSize(),
            matrix.getBufferXSize(), matrix.getBufferYSize());
        assertArrayEquals(b1, b2);
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.