int [ ] getScaledData ( int [ ] srcImage ) { final int [ ] dstImage = new int [ srcImage . length * SCALE * SCALE ] ; for ( int y = 0 ; y < height ; y ++ ) { for ( int x = 0 ; x < width ; x ++ ) { process ( srcImage , dstImage , x , y ) ; } } return dstImage ; }
Get the scaled data .