User Tag List

Page 2 of 2 FirstFirst 1 2
Results 11 to 16 of 16

Thread: How can I convert a hex rgb color value to non hex

  1. #11
    Clickteam Clickteam
    Anders's Avatar
    Join Date
    Jun 2006
    Location
    Denmark, Århus
    Posts
    3,456
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: How can I convert a hex rgb color value to non hex

    I recall something about HEX colors are written inverse direction. So you are getting red when you wanted blue and vice versa. You just need to switch around the red and blue component then. Try to see if that works.

  2. #12
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: How can I convert a hex rgb color value to non hex

    If that's true, it would be

    GetRGB(Val("0x" + Mid$(getData$( "masked edit" ), 4, 2)),Val("0x" + Mid$(getData$( "masked edit" ), 2, 2)),Val("0x" + Mid$(getData$( "masked edit" ), 0, 2)))

  3. #13
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module

    Join Date
    Jun 2006
    Location
    St. Ave France
    Posts
    1,166
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: How can I convert a hex rgb color value to non hex

    I thought for sure that would do the trick.. but its still not working for me. Anyone want to see if its just me being stupid or theres something else going on?

    i'll keep trying too of coure.

  4. #14
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module

    Join Date
    Jun 2006
    Location
    St. Ave France
    Posts
    1,166
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: How can I convert a hex rgb color value to non hex

    GOT it! Thanks to you guys.

    GetRGB(Val("0x"+Mid$(getText$( "part color text" ), 0, 2)), Val("0x"+Mid$(getText$( "part color text" ), 2, 2)), Val("0x"+Mid$(getText$( "part color text" ), 4, 2)))

    aparently the Hex color is not reversed in this case... I noticed I had been using "get data" instead of "get text" from the masked edit object.

  5. #15
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How can I convert a hex rgb color value to non hex

    Try just: Val("0x" + getText$( "masked edit" ))
    If you're lucky that will give you the right colour in a much shorter expression. If you're not lucky, red and blue will be swapped :P

  6. #16
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module

    Join Date
    Jun 2006
    Location
    St. Ave France
    Posts
    1,166
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: How can I convert a hex rgb color value to non hex

    unfortunately, the short version does indeed reverse red and blue! was worth a try though

Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. [BUG 256.34] Replace color doesn't always work in standard 256 color mode
    By Corlen in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 26th October 2014, 10:21 AM
  2. Transparent color not applied when 16bit color mode
    By ASD in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 25th September 2012, 06:11 AM
  3. Transparent color is visible in 16bit color
    By ASD in forum SWF/Flash Export Module Version 2.0
    Replies: 1
    Last Post: 1st September 2010, 04:51 PM
  4. Possible to convert to mac
    By MikeB in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 28th October 2008, 02:05 AM
  5. Picture editor: color problems in 256 color mode.
    By contra in forum File Archive
    Replies: 5
    Last Post: 13th December 2006, 10:58 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •