displaying 4 bit pcx files;

Can someone please show me how to display 4bit 16 color pcx files in
dos mode13h, 320x200(256 colors);

1.I want to know how to read data from 4 different planes (RGBI)and combine it together so that it could be displayed as single pixel in dos mode13h.

2.I also want to know how to read the 16 color palette and display it properly in dos mode13h .

3.Is there any online tutorial or book that deals with displaying multi plane
images in dos mode13h?

Thanks-

Comments

  • http://courses.ece.uiuc.edu/ece390/books/labmanual/graphics-pcx.html
    That has some information that looks good to me.

    Why don't you use a language like c or c++ to test your understanding of the file format before using assembly?

    Speaking from experience working with .bmp format, for 4-bit or 16 colour pixel data, each byte of uncompressed pixel data is the indexes of 2 palette entries. You have to use bit shifting and masking to get the high and low 4 bits.

    I have a c++ program for working with .bmp files at: http://www.programmersheaven.com/d/click.aspx?ID=F54666 if that helps.

    : Can someone please show me how to display 4bit 16 color pcx files in
    : dos mode13h, 320x200(256 colors);
    :
    : 1.I want to know how to read data from 4 different planes (RGBI)and
    : combine it together so that it could be displayed as single pixel in
    : dos mode13h.
    :
    : 2.I also want to know how to read the 16 color palette and display
    : it properly in dos mode13h .
    :
    : 3.Is there any online tutorial or book that deals with displaying
    : multi plane
    : images in dos mode13h?
    :
    : Thanks-
    :
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion