Package com.wiieditor.other

Examples of com.wiieditor.other.Grid


      grabber.grabPixels();
      pixelMap = (int[])grabber.getPixels();
      findBounds(w,h);

      // now downsample
      Grid data = gridPanel.getData();
     
      ratioX = (double)(downSampleRight-
                        downSampleLeft)/(double)data.getWidth();
      ratioY = (double)(downSampleBottom-
                        downSampleTop)/(double)data.getHeight();
     
      for ( int y=0;y<data.getHeight();y++ ) {
        for ( int x=0;x<data.getWidth();x++ ) {
          if ( downSampleQuadrant(x,y) )
            data.enableBlock(x,y);
          else
            data.disableBlock(x,y);
        }
      }

      gridPanel.repaint();
      repaint();
View Full Code Here


   * @param width The width of the downsampled image
   * @param height The height of the downsampled image
   */
  GridPanel(int width,int height)
  {
    data = new Grid(width,height);
  }
View Full Code Here

TOP

Related Classes of com.wiieditor.other.Grid

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.