S.J.Raybould@fulcrum.bt.co.uk (Simon Raybould) (09/18/90)
I am trying to display HAM pictures on an X Terminal. I read in the ILBM file and parse it as follows: bit 5&4 00 - Colour in colour reg bits 3 2 1 0 01 - Same as last colour with Blue set as bits 3 2 1 0 10 - Same as last colour with Red set as bits 3 2 1 0 11 - Same as last colour with Green set as bits 3 2 1 0 The displayed image has many of the colours incorrect, am I missing something here ? SJR +-=-=-=-=-=-=-=-=-=-=-=-=-=-=+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+ | British Telecom Fulcrum | name : Simon John Raybould {^.^} | | Fordrough Lane | path : sie@fulcrum.bt.co.uk \~/ | | Birmingham +-----------+--------------------------| | B9 5LD | // | AMIGA B2000HD 3MB 8088BB | | ENGLAND | \X/AMIGA | Lattice C V5.05 | +-=-=-=-=-=-=-=-=-=-=-=-=-=-=+=-=-=-=-=-=+=-=-=-=-=-=-=-=-=-=-=-=-=-+
griffith@eecs.cs.pdx.edu (Michael Griffith) (09/19/90)
S.J.Raybould@fulcrum.bt.co.uk (Simon Raybould) writes: >I am trying to display HAM pictures on an X Terminal. >I read in the ILBM file and parse it as follows: > bit 5&4 > 00 - Colour in colour reg bits 3 2 1 0 > 01 - Same as last colour with Blue set as bits 3 2 1 0 > 10 - Same as last colour with Red set as bits 3 2 1 0 > 11 - Same as last colour with Green set as bits 3 2 1 0 >The displayed image has many of the colours incorrect, am I missing something >here ? Can't say for sure, but did you remember that the first color of each line has color register 0 (the background color) as it's last color? If not, how about describing where the color problems occur and what most often happens. Also, are you correcting for the type of display you have? That is, are you adjusting your RGB values to what ever range your display has? If your display allows 8 bits for red, green, and blue you will need to shift the Amiga RGB values to the left 4 bits to get the same color. | Michael Griffith | If I had an opinion it certainly | | griffith@eecs.ee.pdx.edu | wouldn't be the same one as | | ...!tektronix!psueea!eecs!griffith | Portland State University anyways. |
knoll@well.sf.ca.us (John Knoll) (09/27/90)
I'm looking for C code to convert a 24bit color image to HAM format. Can anyone help? I'm writing a file translation utility, and would like to be able to write out a HAM file... Please Email, since the volume on this newsgroup *scares* me! -John Knoll