Reply to Re: Any Intelligent Thoughts On This?

Your name:

Reply:


Posted by Steve on 01/17/07 00:04

"Onideus Mad Hatter" <usenet@backwater-productions.net> wrote in message
news:mpoqq25natod36q8d1sjssofgqnvm3tj0e@4ax.com...
| On Wed, 17 Jan 2007 10:39:21 +1100, "Jeckyl" <noone@nowhere.com>
| wrote:
|
| >> The formula you gave before:
| >> var rgb : String = "0x" + ((r*256+g)*256+b).toString(16);
| >>
| >> Ahhh, I see where you failed, you forgot to mention that you needed to
| >> ADD the blue. So the formula should ACTUALLY be:
| >> (r * 65536)+(g * 256)+b
| >
| >It was already correct .. I didn't fail to mention it .. you failed to
read
| >it .. see your own quote from me above.
|
| Actually you just have a horrible time explaining yourself and you
| make a lot of ASSumptions on the part of what your reader is seeing.
| I pray to the sweet baby Jesus that you don't ever inflict your
| horrible handicap onto the world by attempting to write a text book or
| teach a class on...well anything really.
|
| >>> to convert 8-bit unsigned (0..255) R,G, and B values to an RGB value
| >>> you need to shift the red 16 bits and the green 8 bits to the left
| >> ...but what you don't say is WHY.
|
| >OK .. looks like its back to the very basics. I hope I don't need to go
| >back to explain binary numbers, bits, and bytes.
| >
| >A color specifed as an RGB value needs 8 bits (1 byte) for each of the R,
G
| >and B values (which are in the range 0 .. 255 inclusive). These are
usually
| >stored as consecutive bytes, usually in blue, green, red order. You can
| >also treat those three lots of 8 bits as a single 24-bit number. The
| >formula given converts the three individual 8-bit values into a single
| >24-bit value.
| >
| >I hope that explains it.
|
| So it is just meaningless (as far as the color representation)
| mathematical conversion to compress the image? LOL, and here I
| thought it was something more complex like the conversion of RGB to
| HSL.

OMFG !!! it is NOT meaningless. your brain is useless though. the 24 bits
are NOT an image to compress nor does compression get calculated on a single
bit of data - that's done over the whole image and after the fact anyway,
should someone actually compress it. i see you are new to computer
programming to include imaging and compression alike.

btw, RGB to HSL is a snap and only takes a few fucking lines of code to do
it. your code must suck with bloat.

here's a hint to answer the 'meanless'-ness you feel, google for
'programming bits bytes shifting' and read. oh yeah, you don't know how to
google. ROFLMFAO!

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация