Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Color Extraction Developer Insights
#8
It all breaks down to basically two ways to write a number: Little Endian vs Big Endian.

In binary, what value is: 00000001?

It's *either* 1 *OR* 128!

Little endian stores values in ascending bit power.  2^0, 2 ^ 1, 2 ^ 2... to 2 ^ 7.
Big endian stores values in descending bit power.  2 ^ 7, 2 ^ 6, 2 ^ 5.... to 2 ^ 7

It's all about how you read/write the data.

In English, we read left to right, top to bottom.
In Arabic, it's read right to left, top to bottom.
In Japanese, they read top to bottom, right to left.

None is any better than the other -- all those languages end up storing the same data and information-- but it's important to know how to read and get that information successfully.

Little Endian and Big Endian is that same basic concept.  Is it left to right, or right to left?

In this case, it's BGRA.  In some other apps/programs, you may find ARGB  Which is why you always need a manual, reference, or the old barefoot hobo senior programmer around to tell you which format to use, while he sips on his coffee, lounges lazily and eats a doughnot, and earns three times what everyone else in the office does.  Wink
Reply


Messages In This Thread
RE: Color Extraction Developer Insights - by SMcNeill - 01-28-2024, 06:05 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  find color of a pixel PhilOfPerth 8 764 10-09-2025, 05:20 PM
Last Post: SMcNeill
  palette color help pmackay 7 989 07-13-2025, 11:51 PM
Last Post: madscijr
  Trasparent color not being set correctly here... Dav 9 1,563 11-10-2024, 04:11 AM
Last Post: bplus
  Who is the ISE developer/maintainer? desA 3 1,022 08-02-2024, 03:23 AM
Last Post: grymmjack
  Error displaying 256 color PCX image program? macalwen 8 1,687 07-05-2024, 01:39 PM
Last Post: SMcNeill

Forum Jump:


Users browsing this thread: 2 Guest(s)