• Topic Archived
You're browsing the GameFAQs Message Boards as a guest. Sign Up for free (or Log In if you already have an account) to be able to post messages, change how messages are displayed, and view media in posts.

User Info: freeballa

freeballa
11 years ago#1
public static int[][] process(String cmd, int[][] source, int[][] sourceB) {


if (cmd.equalsIgnoreCase("half")){
return PixelEffects.half(source);
}

else if (cmd.equalsIgnoreCase("resize")){
return PixelEffects.resize(source,sourceB);
}
else if (cmd.equalsIgnoreCase("flip")){
return PixelEffects.flip(source);
}
else if (cmd.equalsIgnoreCase("mirror")){
return PixelEffects.mirror(source);
}
else if (cmd.equalsIgnoreCase("rotate")){
return PixelEffects.rotateLeft(source);
}
else if (cmd.equalsIgnoreCase("merge")){
return PixelEffects.merge(source, sourceB);
}
else if (cmd.equalsIgnoreCase("chromaKey")){
return PixelEffects.chromaKey(source, sourceB);
}
else if (cmd.equalsIgnoreCase("redeye")){
return PixelEffects.redeye(source, sourceB);
}
else if (cmd.equalsIgnoreCase("funky")){
return PixelEffects.funky(source, sourceB);
}



}// end method

}// end class

User Info: Kyoto

Kyoto
11 years ago#2
public static int[][] process(String cmd, int[][] source, int[][] sourceB) {
//throw new RuntimeException("Please implement Effects.process!");

if (cmd.equalsIgnoreCase("half")){
source = PixelEffects.half(source);
}

else if (cmd.equalsIgnoreCase("copy")){
source = PixelEffects.copy(source);
}

else if (cmd.equalsIgnoreCase("resize")){
source = PixelEffects.resize(source,sourceB);
}

else if (cmd.equalsIgnoreCase("flip")){
source = PixelEffects.flip(source);
}

else if (cmd.equalsIgnoreCase("mirror")){
source = PixelEffects.mirror(source);
}

else if (cmd.equalsIgnoreCase("rotate")){
source = PixelEffects.rotateLeft(source);
}

else if (cmd.equalsIgnoreCase("merge")){
source = PixelEffects.merge(source, sourceB);
}

else if (cmd.equalsIgnoreCase("chromaKey")){
source = PixelEffects.chromaKey(source, sourceB);
}

else if (cmd.equalsIgnoreCase("redeye")){
source = PixelEffects.redeye(source, sourceB);
}

else if (cmd.equalsIgnoreCase("funky")){
source = PixelEffects.funky(source, sourceB);
}

return source;
}// end method

} // end class
  • Topic Archived