Implementation of a modified PCX image compression using java

  • Authors:
  • Che-Chern Lin;Shen-Chien Chen

  • Affiliations:
  • National Kaohsiung Normal University, Kaohsiung, Taiwan;National Kaohsiung Normal University, Kaohsiung, Taiwan

  • Venue:
  • WSEAS Transactions on Computers
  • Year:
  • 2008

Quantified Score

Hi-index 0.00

Visualization

Abstract

In this paper, we present a new image compression algorithm based on the PCX algorithm, an image compression method used in the computer package of PC Paintbrush Bitmap Graphic. We first introduce the principles of image compressions and the structure of image file formats. We demonstrate the procedures of compression and decompression of the PCX algorithm. The original PCX algorithm only compresses one fourth of data using run-length encoding. The compression efficiency depends on the repeatability of data in the compressed area. If the repeatability is low, the compression performance will be bad. To avoid this, we propose a modified PCX algorithm which selects the best area for compression. We designed a computer package to implement the modified PCX algorithm using java programming language. The Unified Modeling Language (UML) was used to describe the structure and behaviors of the computer package. The pseudo codes for the compression and decompression of the modified PCX algorithm are also provided in this paper. We did an experiment to compare the performance between the original and modified algorithms. The experimental results show that the modified PCX algorithm is better than the original one in compression performance.