C# Class NScumm.Core.Graphics.ColorHelper

Show file Open project: scemino/nscumm

Public Methods

Method Description
ColorToRGB ( ushort color, byte &r, byte &g, byte &b ) : void
RGBToColor ( byte r, byte g, byte b ) : ushort

Private Methods

Method Description
Expand5 ( int value ) : int

Method Details

ColorToRGB() public static method

public static ColorToRGB ( ushort color, byte &r, byte &g, byte &b ) : void
color ushort
r byte
g byte
b byte
return void

RGBToColor() public static method

public static RGBToColor ( byte r, byte g, byte b ) : ushort
r byte
g byte
b byte
return ushort