Skip to content

Instantly share code, notes, and snippets.

@ponkotuy
Created January 5, 2016 08:58
Show Gist options
  • Save ponkotuy/c168b2ab145db5e3194a to your computer and use it in GitHub Desktop.
Save ponkotuy/c168b2ab145db5e3194a to your computer and use it in GitHub Desktop.
ImageIOのサンプル
import java.io.File
import javax.imageio.ImageIO
object Main extends App {
assert(args.nonEmpty)
val image = ImageIO.read(new File(args.head))
println(image.getWidth, image.getHeight)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment