Results 1 to 12 of 12

Thread: VB color code for this hexadecimal color

  1. #1

    Thread Starter
    Frenzied Member Ultimasnake's Avatar
    Join Date
    Feb 2002
    Location
    Amsterdam, holland
    Posts
    1,172

    VB color code for this hexadecimal color

    i have a bright pink color with the hex code FF00FF when i convert it to decimals for use with my transparancy it doesnt pick it up anymore and doesnt make it transparant
    i am using DIRECT DRAW with ofcourse the setcolorkey etc etc , it does work with things like VB WHIT and VB BLACK...
    For my PC and MS Smartphone 2003 software visit
    http://www.ultimasoftware.nl

  2. #2

    Thread Starter
    Frenzied Member Ultimasnake's Avatar
    Join Date
    Feb 2002
    Location
    Amsterdam, holland
    Posts
    1,172
    i get this color :s 16711935 but it only works in 32 bit mode :s and not very good either :S
    For my PC and MS Smartphone 2003 software visit
    http://www.ultimasoftware.nl

  3. #3
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Look at the DX4VB tuts.. they have things that will work for 16-bit colour mode. 24-bit and 32-bit use the RGB function.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  4. #4

    Thread Starter
    Frenzied Member Ultimasnake's Avatar
    Join Date
    Feb 2002
    Location
    Amsterdam, holland
    Posts
    1,172
    i also did that with rgb(256,0,256) not working either :S
    For my PC and MS Smartphone 2003 software visit
    http://www.ultimasoftware.nl

  5. #5
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Are you sure it IS magenta? (It would be 255, 0, 255, btw)
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  6. #6

    Thread Starter
    Frenzied Member Ultimasnake's Avatar
    Join Date
    Feb 2002
    Location
    Amsterdam, holland
    Posts
    1,172
    yeah i am pretty sure about that ... and i used 255 sorry bit confused :P.. anyway.... mind helping me with it? hangon i will attach the code
    For my PC and MS Smartphone 2003 software visit
    http://www.ultimasoftware.nl

  7. #7

    Thread Starter
    Frenzied Member Ultimasnake's Avatar
    Join Date
    Feb 2002
    Location
    Amsterdam, holland
    Posts
    1,172
    here it is
    For my PC and MS Smartphone 2003 software visit
    http://www.ultimasoftware.nl

  8. #8

    Thread Starter
    Frenzied Member Ultimasnake's Avatar
    Join Date
    Feb 2002
    Location
    Amsterdam, holland
    Posts
    1,172
    http://www.xs4all.nl/~jleroy/tuxball.zip < here it is , it was to big to attach... i hope you can help me with another problem.... the tiles of the map disapear when they are only 1 pixel out of the screen how to stop it from doing that? :S
    For my PC and MS Smartphone 2003 software visit
    http://www.ultimasoftware.nl

  9. #9
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    I replied in your other post (or somebody else's post...), a bit of theory. What happens is if any of it is off the screen, ALL of it is off the screen. Therefore you must limit your draw rect to the screen. You can do this by cutting off the part that is off the screen (which will also increase performance, in some cases).
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  10. #10

    Thread Starter
    Frenzied Member Ultimasnake's Avatar
    Join Date
    Feb 2002
    Location
    Amsterdam, holland
    Posts
    1,172
    well it wasnt my post you repleid to , anyway from what you are telling me i dont have a clue ,i found some examples but cant seem to figure out how they work , mind helping me a bit? you can (if you want) fix it into my WORLD module , it is the level itself that is moving , if you would do that i might be able to understand it :S.... i am new to direct draw (started thursday) and am really stuck on this , the rest is rather easy though
    For my PC and MS Smartphone 2003 software visit
    http://www.ultimasoftware.nl

  11. #11
    Lively Member
    Join Date
    Jul 2002
    Posts
    118
    Guys

    While u r on the subject what tool do u use for working out hex colour codes please?

    ty

    Dan

  12. #12

    Thread Starter
    Frenzied Member Ultimasnake's Avatar
    Join Date
    Feb 2002
    Location
    Amsterdam, holland
    Posts
    1,172
    the hex code? you can get it with most of the programs like photoshop when you draw a picture ... also the last 6 numbers of a color in vb is the hex code :&H00FFFFFF& so that is FFFFFF and is white
    For my PC and MS Smartphone 2003 software visit
    http://www.ultimasoftware.nl

Posting Permissions

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



Click Here to Expand Forum to Full Width