PCX 24Bit, anyone ?

I got my code working with one particular PCX file,

(or it's rather 1 of 4 files who works)

The troublemaker is Photoshop 5, which somehow

makes some files inaccurate compared to other programs.


when viewing the "wrong" files, they appear as

if they've been colorized or the contrast has

been changed at the outer regions.


NB! 8bit 256 color files works perfectly !

------------------------------------------------------


MY CODE IN SHORT:

-----------------

What I do is go through the 'Height' with a loop

and then drawing each 'Scanline' (3 for 24bit).

First I save the red scanline in a buffer, and blue...etc. When finished, I do a loop of the 'Height'

and 'Width' again to draw the pixels from the 3 buffers


My code draws in either one of 15,16,24 or 32 bit displaymodes and I have coded everything I might need

to manipulate pixels, but the SCANLINE DECODING is

a quite annoying issue.


...so please if you have ANYTHING to contribute...

please do so! - just name a prize...nahh, just kidding! :)


thanks in advance,

Delianze (aka Jari Berg)

delianze@hotmail.com




I make


If you have any code or




Comments



  • I have Pascal code for a PCX viewer. it even

    supports 24-bit PCXs. :) it's not perfect yet;

    i think the palette setting needs adjustment.

    but it gives you an idea how to deal with 24-bit

    images and is fairly accurate.


    if anybody's interested, e-mail me.


    assassin17@rocketmail.com


    : I got my code working with one particular PCX file,

    : (or it's rather 1 of 4 files who works)

    : The troublemaker is Photoshop 5, which somehow

    : makes some files inaccurate compared to other programs.


    : when viewing the "wrong" files, they appear as

    : if they've been colorized or the contrast has

    : been changed at the outer regions.


    : NB! 8bit 256 color files works perfectly !

    : ------------------------------------------------------


    : MY CODE IN SHORT:

    : -----------------

    : What I do is go through the 'Height' with a loop

    : and then drawing each 'Scanline' (3 for 24bit).

    : First I save the red scanline in a buffer, and blue...etc. When finished, I do a loop of the 'Height'

    : and 'Width' again to draw the pixels from the 3 buffers


    : My code draws in either one of 15,16,24 or 32 bit displaymodes and I have coded everything I might need

    : to manipulate pixels, but the SCANLINE DECODING is

    : a quite annoying issue.


    : ...so please if you have ANYTHING to contribute...

    : please do so! - just name a prize...nahh, just kidding! :)


    : thanks in advance,

    : Delianze (aka Jari Berg)

    : delianze@hotmail.com


    :

    : I make


    : If you have any code or





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