Global Mapper SDK
GM_Constants .RGB_TO_GRAY Method (Int32, Int32, Int32) |
Convert RGB colors (or COLORREF) to a gray value
Namespace:GlobalMapper.Types
Assembly: GlobalMapperWrapperNET (in GlobalMapperWrapperNET.dll) Version: 18.0.0.0 (18.0.0.0)

C#
public static Color RGB_TO_GRAY ( int r , int g , int b )
Parameters
- r
-
Type:
System
.
Int32
Red Value - g
-
Type:
System
.
Int32
Green Value - b
-
Type:
System
.
Int32
Blue Value
Return Value
Type: ColorThe Color in Grayscale
