Package edu.princeton.cs.algs4
Class PictureDump
- Object
-
- edu.princeton.cs.algs4.PictureDump
-
public class PictureDump extends Object
ThePictureDump
class provides a client for displaying the contents of a binary file as a black-and-white picture.For additional documentation, see Section 5.5 of Algorithms, 4th Edition by Robert Sedgewick and Kevin Wayne.
See also
BinaryDump
andHexDump
.- Author:
- Robert Sedgewick, Kevin Wayne
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
main(String[] args)
Reads in a sequence of bytes from standard input and draws them to standard drawing output as a width-by-height picture, using black for 1 and white for 0 (and red for any leftover pixels).
-
-
-
Method Detail
-
main
public static void main(String[] args)
Reads in a sequence of bytes from standard input and draws them to standard drawing output as a width-by-height picture, using black for 1 and white for 0 (and red for any leftover pixels).- Parameters:
args
- the command-line arguments
-
-