"E. Scrooge" <(E-Mail Removed) (remove eye)> wrote in message

news:bf03rc$mlp$(E-Mail Removed)...

>

> "Nicholas Sherlock" <(E-Mail Removed)> wrote in message

> news:bevmnb$eag$(E-Mail Removed)...

> > "E. Scrooge" <(E-Mail Removed) (remove eye)> wrote in message

> > news:beu05d$d21$(E-Mail Removed)...

> > > At that ressolution of colour. The website where the picture is

> probably

> > > looks all right. When looking at your 16bit picture especially if
some

> > > other colour consuming application is also showing, your grabbed
picture

> > > could look like crap.

> >

> > Try again. It's nearly impossible to tell the difference between 24 bit

> and

> > 16 bit. Maybe 24 bit and 16 colours.

> >

> > Cheers,

> > Nicholas Sherlock

>

> Open 2 pictures side by side and it's not.

> There's a big difference between 65,000 and 16,000,000.

>

> E. Scrooge

>
Rubbish! I wrote a tool that converts an image to 16 bit and shows it side

by side with the orignal 24 bit. The images are barely different. I'll post

the program somewhere if someone wants to see. The algorithm that I've coded

for converting 24 bit to 16 bit looks like this:

newrow[x].rgbtblue := (newrow[x].rgbtblue and

24

+(integer((newrow[x].rgbtblue and 7)>3)*

;

newrow[x].rgbtred := (newrow[x].rgbtred and 24

+(integer((newrow[x].rgbtred

and 7)>3)*

;

newrow[x].rgbtgreen := (newrow[x].rgbtgreen and

252)+(integer((newrow[x].rgbtgreen and 3)>2)*4);

Basically, for red and blue it takes the top 5 bits (That's the AND 248

part), then, if the remaining 3 bits make up a number more than 3, it adds

an additional 8 to the value. For green, it takes the top 6 bits (That's the

AND 252 part), then, if the remaining 2 bits make up a number more than 2,

it adds an additional 4 to the value.

Cheers,

Nicholas Sherlock