Re: so... objections

2002-04-23 Thread Kuba Ober
On piątek 19 kwiecień 2002 05:04 am, Herbert Voss wrote: > Asger K. Alstrup Nielsen wrote: > > You are both using a RGB color model, but this is not relevant. > > Even with a HSL or Munsell color space, the transformation would > > be the same: You want the Most Significant Bits. > > Why? Because

Re: so... objections

2002-04-19 Thread Asger K. Alstrup Nielsen
On Fri, 19 Apr 2002, Herbert Voss wrote: > I want to understand, so please give an answer to this: > > r/g or b has a range from to or only 6 bits > for some graphic cards. > converting to for example 4 bit could'nt only take the significant > nibble ... Assume you have the col

Re: so... objections

2002-04-19 Thread Herbert Voss
Asger K. Alstrup Nielsen wrote: > You are both using a RGB color model, but this is not relevant. > Even with a HSL or Munsell color space, the transformation would > be the same: You want the Most Significant Bits. > Why? Because you loose more information by dropping more significant > bits. >

Re: so... objections

2002-04-19 Thread Asger K. Alstrup Nielsen
On Thu, 18 Apr 2002, Herbert Voss wrote: > if we want to build up a 16bit color correct to > a 8 bit one than we cannot do only a shift of > 8 bit to get the high or low byte. This is a very good approximation. > we had to take every second _bit_ from the original one. Or > every third if it's

Re: so... objections

2002-04-18 Thread Andre Poenitz
On Thu, Apr 18, 2002 at 09:49:02PM +0200, Herbert Voss wrote: > if we want to build up a 16bit color correct to > a 8 bit one than we cannot do only a shift of > 8 bit to get the high or low byte. > we had to take every second _bit_ from the original one. Or > every third if it's a 24 bit one. An

Re: so... objections

2002-04-18 Thread Herbert Voss
Lars Gullik Bjønnes wrote: > Yes, and we want those. > > ABCD >> 8 = AB if we want to build up a 16bit color correct to a 8 bit one than we cannot do only a shift of 8 bit to get the high or low byte. we had to take every second _bit_ from the original one. Or every third if it's a 24 bit one

Re: so... objections

2002-04-18 Thread Lars Gullik Bjønnes
Herbert Voss <[EMAIL PROTECTED]> writes: | Lars Gullik Bjønnes wrote: > >> Herbert Voss <[EMAIL PROTECTED]> writes: >> | Herbert Voss wrote: >> and what about this?? >> | aehm ... forget it, it's just the same than yours ... >> except that yours looks buggy :-) > > | I suppose yours

Re: so... objections

2002-04-18 Thread Herbert Voss
Lars Gullik Bjønnes wrote: > Herbert Voss <[EMAIL PROTECTED]> writes: > > | Herbert Voss wrote: > >>>and what about this?? >>> >>> > | aehm ... forget it, it's just the same than yours ... > > except that yours looks buggy :-) I suppose yours ... ;-) if we have two bytes than the right

Re: so... objections

2002-04-18 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | On Thursday 18 April 2002 6:08 pm, Lars Gullik Bjønnes wrote: >> Angus Leeming <[EMAIL PROTECTED]> writes: >> | On Thursday 18 April 2002 5:46 pm, Lars Gullik Bjønnes wrote: >> | [snip] >> | >> | Not from me. If it works then just do it. >> >> well... I

Re: so... objections

2002-04-18 Thread Angus Leeming
On Thursday 18 April 2002 6:08 pm, Lars Gullik Bjønnes wrote: > Angus Leeming <[EMAIL PROTECTED]> writes: > | On Thursday 18 April 2002 5:46 pm, Lars Gullik Bjønnes wrote: > | [snip] > | > | Not from me. If it works then just do it. > > well... I am not able to test it... Sure you are. You just n

Re: so... objections

2002-04-18 Thread Lars Gullik Bjønnes
Herbert Voss <[EMAIL PROTECTED]> writes: | Herbert Voss wrote: > >> and what about this?? >> > | aehm ... forget it, it's just the same than yours ... except that yours looks buggy :-) -- Lgb

Re: so... objections

2002-04-18 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | On Thursday 18 April 2002 5:46 pm, Lars Gullik Bjønnes wrote: | [snip] > | Not from me. If it works then just do it. well... I am not able to test it... -- Lgb

Re: so... objections

2002-04-18 Thread Herbert Voss
Herbert Voss wrote: > and what about this?? > aehm ... forget it, it's just the same than yours ... Herbert -- http://www.lyx.org/help/

Re: so... objections

2002-04-18 Thread Herbert Voss
and what about this?? Herbert string const convertTo7chars(string const & input) { string::size_type size = input.size(); if (size != 13 && size != 10 && size != 4) // Can't deal with it. return input; if (input[0] != '#')

Re: so... objections

2002-04-18 Thread Angus Leeming
On Thursday 18 April 2002 5:46 pm, Lars Gullik Bjønnes wrote: [snip] Not from me. If it works then just do it. A

so... objections

2002-04-18 Thread Lars Gullik Bjønnes
To this: string const convertTo7chars(string const & input) { string::size_type size = input.size(); if (size != 13 && size != 10 && size != 4) // Can't deal with it. return input; if (input[0] != '#') // Can't deal with it