https://bugs.documentfoundation.org/show_bug.cgi?id=145725

--- Comment #4 from Julien Nabet <serval2...@yahoo.fr> ---
(In reply to Wolfgang Jäger from comment #3)
> ...
> I havent access to any MS sogftware with VBA, but...
> Even MS would (hopefully) not use the function name RGB() if expeting
> parameters in the order b, g, r. 
> IF MS use a different color model by default in VBA, they need to name and
> specify their functions respectively. 
> But: There is a RGB() function in VBA, 
> and it expects the arguments in order r, g, b.
> 
> See also
> https://docs.microsoft.com/en-us/office/vba/language/reference/user-
> interface-help/rgb-function

The pb isn't the order of arguments when calling the function, both LO and MS
use R, G and B args in this order but it's a matter of how to store the values
in one single Long value.

It's precisely indicated in Mike's link:
"
In other words, the individual color components are stored in the opposite
order one would expect. VB stores the red color component in the low-order byte
of the long integer's low-order word, the green color in the high-order byte of
the low-order word, and the blue color in the low-order byte of the high-order
word
"

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to