// Picture sourcePic, int startSourceRow, int endSourceRow, // int startSourceCol, int endSourceCol,int startDestRow, int startDestCol public static void testCropAndCopy() { Picture beach = new Picture("beach.jpg"); Picture gull = new Picture("seagull.jpg"); beach.explore(); gull.explore(); beach.cropAndCopy(gull, 100, 200, 100, 200, 50, 50); beach.explore(); }
/** Test Main. It will explore Splatoon! */ public static void main(String args[]) { // Picture pix = new Picture("snowman.jpg"); Picture pix = new Picture("splatoon.jpg"); Picture smallPic = pix.scale(.5, .48); smallPic.explore(); smallPic.write("smallSplatoon.jpg"); }
/** Method to test the collage method */ public static void testCollage() { Picture canvas = new Picture(850, 1300); // Picture beach = new Picture("beach.jpg"); // beach.sepia(); // beach.explore(); canvas.createCollage(); canvas.explore(); canvas.write("rarePepes.jpg"); }
public static void main(String[] args) { FileChooser.setMediaPath("/home/linux/ieng6/cs8w/cs8wfs/Desktop/mediasources/"); Picture input1 = new Picture("bird1.jpg"); input1.explore(); Picture redBird = input1.greenToRed(); redBird.show(); }
public static void main(String[] args) { String fileName = FileChooser.pickAFile(); Picture pictObj = new Picture(fileName); pictObj.changeWhole(.5); pictObj.changeWhole(.8); pictObj.scrible(200, 200, 50); pictObj.scrible(350, 320, 100); pictObj.ManipBoxUniformly(200, 200, 300, 300, .2); pictObj.ManipBoxUniformly(100, 100, 400, 300, .5); pictObj.ManipBoxPattern(100, 100, 300, 300, .3); pictObj.ManipBoxPattern(300, 300, 400, 400, .8); pictObj.explore(); }
/* Main method for testing - each class in Java can have a main * method */ public static void main(String[] args) { Picture desert = new Picture("Desert.jpg"); Picture koala = new Picture("Koala.jpg"); // beach.explore(); // beach.zeroBlue(); // desert.chromakey(koala); // desert.sepia(25, 3); koala.sepia(); // desert.encode("ABCDEFGHIJKLMNOPasdfgwe6"); // System.out.println(desert.decode()); // desert.explore(); koala.explore(); }
public static void testMirrorVerticalRightToLeft() { Picture caterpillar = new Picture("caterpillar.jpg"); caterpillar.explore(); caterpillar.mirrorVerticalRightToLeft(); caterpillar.explore(); }
/** Method to test mirrorTemple */ public static void testMirrorTemple() { Picture temple = new Picture("temple.jpg"); temple.explore(); temple.mirrorTemple(); temple.explore(); }
/** Method to test edgeDetection */ public static void testEdgeDetection() { Picture swan = new Picture("swan.jpg"); swan.edgeDetection(10); swan.explore(); }
public static void testGrayscale() { Picture beach = new Picture("beach.jpg"); beach.explore(); beach.grayscale(); beach.explore(); }
public static void testMirrorDiagonal() { Picture donald = new Picture("donald.jpg"); donald.mirrorDiagonal(); donald.explore(); }
public static void testMirrorSeagull() { Picture gull = new Picture("seagull.jpg"); gull.mirrorGull(); gull.explore(); }
public static void testKeepOnlyBlue() { Picture beach = new Picture("beach.jpg"); beach.keepOnlyBlue(); beach.explore(); }
/** Test Main. It will explore the beach */ public static void main(String args[]) { Picture pix = new Picture("Russet_Potato.jpg"); pix.explore(); }
/** Test Main. It will explore the beach */ public static void main(String args[]) { Picture pix = new Picture("Bknight.jpg"); pix.explore(); }
public static void testCropAndCopy() { Picture pix1 = new Picture("snowman.jpg"); Picture pix2 = new Picture("arch.jpg"); pix2.cropAndCopy(pix1, 30, 100, 40, 200, 10, 20); pix2.explore(); }
/** Test Main. It will explore the beach */ public static void main(String args[]) { Picture pix = new Picture("D://Documents/ApComputers/pixLab/images/beach.jpg"); pix.explore(); }
public static void testGrayscale() { Picture pix = new Picture("donald3.jpg"); pix.grayscale(); pix.explore(); }
public static void testNegate() { Picture pix = new Picture("donald.jpg"); pix.negate(); pix.explore(); }
public static void testKeepOnlyBlue() { Picture pix = new Picture("donald.jpg"); pix.keepOnlyBlue(); pix.explore(); }
public static void testMirrorHorizontalBotToTop() { Picture caterpillar = new Picture("caterpillar.jpg"); caterpillar.explore(); caterpillar.mirrorHorizontalBotToTop(); caterpillar.explore(); }
public static void testMirrorVerticalRightToLeft() { Picture donald = new Picture("donald.jpg"); donald.mirrorVerticalRightToLeft(); donald.explore(); }
public static void testMirrorArms() { Picture snowman = new Picture("snowman.jpg"); snowman.mirrorArms(); snowman.explore(); }
/* Main method for testing - each class in Java can have a main * method */ public static void main(String[] args) { Picture beach = new Picture("beach.jpg"); beach.explore(); beach.zeroBlue(); beach.explore(); }
public static void testHalfSize() { Picture pix = new Picture("donald3.jpg"); pix.explore(); pix.halfSize(); pix.explore(); }
/** Method to test the collage method */ public static void testCollage() { Picture canvas = new Picture("640x480.jpg"); canvas.createCollage(); canvas.explore(); }
public static void testNegate() { Picture beach = new Picture("beach.jpg"); beach.explore(); beach.negate(); beach.explore(); }
/** Method to test zeroBlue */ public static void testZeroBlue() { Picture beach = new Picture("beach.jpg"); beach.explore(); beach.zeroBlue(); beach.explore(); }
/** Test Main. It will explore the beach */ public static void main(String args[]) { Picture pix = new Picture("seagull.jpg"); pix.explore(); }
public static void testMirrorHorizontalOtherWay() { Picture donald = new Picture("donald.jpg"); donald.mirrorHorizontalOtherWay(); donald.explore(); }