I'm trying to use a third party .Net charting control. One of its
methods takes a standard 4-byte integer as a parameter (to specify a
colour actually, but it's done as a standard integer value and not eg
a colour object). Because the colour will be in ARGB colour space the
integer needs to specify all four bytes.
But if I try to pass the integer as eg &HFFCCDDEE then the VB2005
Intellisense immediately seems to knock this back to &HCCDDEE, which
is then an incorrect value.
There are some workarounds I can use involving methods to convert
between colour spaces (eg starting with color.fromARGB) , but I'm
curious as to why what seems to be the simple straightforward approach
of specifying the required integer directly in a 4-byte/8-digit format
is failing. Is there an alternative syntax that I need to use to
specify 4-byte values?
JGD
methods takes a standard 4-byte integer as a parameter (to specify a
colour actually, but it's done as a standard integer value and not eg
a colour object). Because the colour will be in ARGB colour space the
integer needs to specify all four bytes.
But if I try to pass the integer as eg &HFFCCDDEE then the VB2005
Intellisense immediately seems to knock this back to &HCCDDEE, which
is then an incorrect value.
There are some workarounds I can use involving methods to convert
between colour spaces (eg starting with color.fromARGB) , but I'm
curious as to why what seems to be the simple straightforward approach
of specifying the required integer directly in a 4-byte/8-digit format
is failing. Is there an alternative syntax that I need to use to
specify 4-byte values?
JGD
Comment