Welcome, Guest. Please login or register.

Author Topic: Any way to tell HEX value of a colour in a bitmap?  (Read 1383 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Ral-ClanTopic starter

  • Hero Member
  • *****
  • Join Date: Feb 2006
  • Posts: 1979
  • Country: ca
    • Show only replies by Ral-Clan
    • http://www3.sympatico.ca/clarke-santin/
Any way to tell HEX value of a colour in a bitmap?
« on: March 20, 2007, 07:14:20 PM »
I've been playing around with the excellent free program AUTOTRACE.  It's a program that converts bitmaps into vector drawings.  You can specify a colour to be transparent if you know its HEX value.  I can to this with black 000000 or white FFFFFF, but is there any program or other way to determine what the HEX value of a particular colour in a bitmap is (preferably an Amiga program).
Music I've made using Amigas and other retro-instruments: http://theovoids.bandcamp.com
 

Offline SamuraiCrow

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2281
  • Country: us
  • Gender: Male
    • Show only replies by SamuraiCrow
Re: Any way to tell HEX value of a colour in a bitmap?
« Reply #1 on: March 20, 2007, 08:22:39 PM »
If you have a palette entry that uses 0-255 red, 0-255 green, and 0-255 blue, you just divide each number by 16, and set the hexadecimal digit based on that value:  0 through 9 stay the same, 10=a, 11=b, 12=c, 13=d, 14=e, and 15=f.  The remainder of the division process will be the next hex digit, and then you just put the red, green, and blue values together in that order and you've got your hex value.  Any Amiga paint program with a palette editor will be able to tell you the decimal values to convert to hex.
 

Offline Ral-ClanTopic starter

  • Hero Member
  • *****
  • Join Date: Feb 2006
  • Posts: 1979
  • Country: ca
    • Show only replies by Ral-Clan
    • http://www3.sympatico.ca/clarke-santin/
Re: Any way to tell HEX value of a colour in a bitmap?
« Reply #2 on: March 20, 2007, 08:25:56 PM »
Oh thank you!
Music I've made using Amigas and other retro-instruments: http://theovoids.bandcamp.com
 

Offline Brian

  • Hero Member
  • *****
  • Join Date: Mar 2003
  • Posts: 1604
    • Show only replies by Brian
    • http://www.syntaxsociety.se
Re: Any way to tell HEX value of a colour in a bitmap?
« Reply #3 on: March 20, 2007, 08:47:22 PM »
I use the PC program PaintShopPro 4.12, it let's you specify colors either in Numeric or Hex. :)

Offline Ral-ClanTopic starter

  • Hero Member
  • *****
  • Join Date: Feb 2006
  • Posts: 1979
  • Country: ca
    • Show only replies by Ral-Clan
    • http://www3.sympatico.ca/clarke-santin/
Re: Any way to tell HEX value of a colour in a bitmap?
« Reply #4 on: March 20, 2007, 09:03:55 PM »
Thanks....I thought of using a PC paint program, but I'd like to keep things all on the Amiga to work more efficiently.

If anyone knows of an Amiga app that will automatically tell me a HEX value of a colour, I would really appreciate it.  Other than that, the manual method described above will get me through.
Music I've made using Amigas and other retro-instruments: http://theovoids.bandcamp.com
 

Offline bigdan

  • Full Member
  • ***
  • Join Date: Aug 2004
  • Posts: 149
    • Show only replies by bigdan
    • http://www.amigaimpact.org/
Re: Any way to tell HEX value of a colour in a bitmap?
« Reply #5 on: March 20, 2007, 09:27:58 PM »

Ral-clan : are you ImageFX or Fxpaint user ??
www.amigaimpact.org the fresh french news for Amiga and Pegasos !
 

Offline Ral-ClanTopic starter

  • Hero Member
  • *****
  • Join Date: Feb 2006
  • Posts: 1979
  • Country: ca
    • Show only replies by Ral-Clan
    • http://www3.sympatico.ca/clarke-santin/
Re: Any way to tell HEX value of a colour in a bitmap?
« Reply #6 on: March 21, 2007, 02:15:50 PM »
Hi, I do use ImageFX quite a bit.  Is there some way to tell HEX numbers from it?  Of course I have DPaint installed as well.
Music I've made using Amigas and other retro-instruments: http://theovoids.bandcamp.com