• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Converting an RGB color back into an 16-bit-per-channel color
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Converting an RGB color back into an 16-bit-per-channel color


  • Subject: Re: Converting an RGB color back into an 16-bit-per-channel color
  • From: "Mark J. Reed" <email@hidden>
  • Date: Sat, 13 Aug 2011 20:43:14 -0400

Uhm, no. 16 bits per channel is lots more information than 8 bits per
channel, and alll that extra information is lost when you convert to 8
bits.  I mean, there are 65,536 different possible values of a 16-bit
number, and only 256 possible values of an 8 bit number. That means
that there are 256 different possible 16-bit values for any given
8-bit value.  There's no way to tell which one of those 256 you
started out with.


On Sat, Aug 13, 2011 at 8:21 PM, Jim Thorton <email@hidden> wrote:
> Dear AppleScripters,
> Hola.  I know that I can use AppleScript to open the Color Picker window.
>  If the user picks a color, you will get a 16-bit-per-channel color
> like {52428, 54484, 45232}.  If you want to manually convert this color into
> an 8-bit-per-channel color for an RGB color, I guess you need to divide each
> component by 256.  Well, I would get RGB(204,212,176).  And that's what I
> get if I select RGB Sliders from the color sliders drop-down menu.  But you
> can never convert this RGB color back into what it was.  If you multiple
> each component by 256, you would get {52224,54272,45056}, which differs from
> the original color.
> Is there any way to convert an RGB color back into the
> original 16-bit-per-channel color?
> Thank you for your advice.
> Jim
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> AppleScript-Users mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> Archives: http://lists.apple.com/archives/applescript-users
>
> This email sent to email@hidden
>
>



--
Mark J. Reed <email@hidden>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Converting an RGB color back into an 16-bit-per-channel color (From: Jim Thorton <email@hidden>)

  • Prev by Date: Converting an RGB color back into an 16-bit-per-channel color
  • Next by Date: Re: Scrolling in Lion
  • Previous by thread: Converting an RGB color back into an 16-bit-per-channel color
  • Next by thread: Re: Converting an RGB color back into an 16-bit-per-channel color
  • Index(es):
    • Date
    • Thread