Re: Color question



The real question you should have asked was 'so how do you set colors in VB
since there is no unchecked keyword'.

And the answer is of course - you have to understand 2's complement. Yes
that's right VB is targeted towards a more beginner audience than c# but to
code MDX fully you have to understand binary representation of numbers.

In reality you would use Color.FromArgb() which handles the conversion for
you.

--
Zman
http://www.thezbuffer.com - News and information for Managed DirectX



"Stephan Rose" <kermos@xxxxxxxxxxxxxxxxxxxxx> wrote in message
news:so14b2596qrm2k2kdq0ff7ooqs4588nnu6@xxxxxxxxxx
On Sun, 9 Jul 2006 20:53:03 -0700, "ZMan" <zman@xxxxxxxxxxxxxx> wrote:

#1 reason is that uint is not CLS compatible so the library would not work
with all languages (e.g. VB doesn't support unsigned).

And there actually are people who wonder why I stay away from VB like
the plague!!! =)

--
Stephan
2003 Yamaha R6

kimi no koto omoidasu hi
nante nai no wa
kimi no koto wasureta toki ga nai kara


.



Relevant Pages


Loading