Forum Discussion
omsakthir
14 years agoNew Contributor
Alex, thank you for the answer.
I found another way too.
Converting argb value into rgb value:
Tools->Current Project Properties-->CLR Bridge
Browse GAC add System.Drawing
Then we will be able to use color class.
ColourObject = .System_Drawing.Color.FromArgb("-16776961").Message(ColourObject .R) '0.Message(ColourObject .G) '0.Message(ColourObject .B) '255
I found another way too.
Converting argb value into rgb value:
Tools->Current Project Properties-->CLR Bridge
Browse GAC add System.Drawing
Then we will be able to use color class.
Example:
set ColourObject = dotNet.System_Drawing.Color.FromArgb("-16776961")
Log.Message(ColourObject .R) '0
Log.Message(ColourObject .G) '0
Log.Message(ColourObject .B) '255
ColourObject = .System_Drawing.Color.FromArgb("-16776961").Message(ColourObject .R) '0.Message(ColourObject .G) '0.Message(ColourObject .B) '255