Howdy, Stranger!

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

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

displaying 4 bit pcx files;

djdondjdon Posts: 2Member
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

  • Josh CodeJosh Code Posts: 675Member
    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.