I want to create a PCX-viewer but I don't know how.

Does someone have an example?