I know PB 8 has the BGR conversion function but the set of programs I need this in are 7.04 and code I want to use from the forum is for PB 8 and 9. Anyway the sample code uses the BGR function and from what I can glean this might be a replacement function. Looking for verification and/or correction as always
Thanks,
Bob Mechler
Thanks,
Bob Mechler
Code:
FUNCTION ToBGR(OldRGB AS LONG) AS LONG LOCAL NewBGR&,cRed&,cGreen&,cBlue& cRed& = OldRGB& MOD 256 cGreen& = (OldRGB& \ 256) MOD 256 cBlue& = ((OldRGB& \ 256) \ 256) MOD 256 NewBGR& = cBlue& * 65536 + cGreen& * 256 + cRed& FUNCTION = NewBGR& END FUNCTION
Comment