|
-
Sep 22nd, 2002, 01:08 PM
#1
Thread Starter
Frenzied Member
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...
-
Sep 22nd, 2002, 01:23 PM
#2
Thread Starter
Frenzied Member
i get this color :s 16711935 but it only works in 32 bit mode :s and not very good either :S
-
Sep 22nd, 2002, 01:52 PM
#3
Good Ol' Platypus
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)
-
Sep 22nd, 2002, 01:53 PM
#4
Thread Starter
Frenzied Member
i also did that with rgb(256,0,256) not working either :S
-
Sep 22nd, 2002, 02:21 PM
#5
Good Ol' Platypus
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)
-
Sep 22nd, 2002, 02:30 PM
#6
Thread Starter
Frenzied Member
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
-
Sep 22nd, 2002, 02:32 PM
#7
Thread Starter
Frenzied Member
-
Sep 22nd, 2002, 02:35 PM
#8
Thread Starter
Frenzied Member
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
-
Sep 22nd, 2002, 03:08 PM
#9
Good Ol' Platypus
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)
-
Sep 22nd, 2002, 03:16 PM
#10
Thread Starter
Frenzied Member
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
-
Sep 22nd, 2002, 05:09 PM
#11
Lively Member
Guys
While u r on the subject what tool do u use for working out hex colour codes please?
ty
Dan
-
Sep 23rd, 2002, 01:23 AM
#12
Thread Starter
Frenzied Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|