RGB2Long

Converts Red, Green and Blue integers into RGB long value

Function RGB2Long(sRed as integer, sGreen as integer, sBlue as integer)
' Converts RGB to Long value
' Based on the formula ... RGB = Red + (Green*256) + (Blue*256*256)
Rgb2Long = sRed + (sGreen*256) + (sBlue*256*256)
End Function

Parameters

sRed as integer, sGreen as integer, sBlue as integer

Views 142 Downloads 51

Perm link


ANmarAmdeen
283
Graphics VBA
Revisions

v1.0