C# Class tsge.Extensions.ColorExtensions

ファイルを表示 Open project: Walkman100/TSGE

Public Methods

Method Description
FromBytes ( this c, byte btColor ) : Color

Converts a byte array of three bytes to a System.Drawing.Color.

ToBytes ( this c ) : byte[]

Converts a System.Drawing.Color to a three byte array.

Method Details

FromBytes() public static method

Converts a byte array of three bytes to a System.Drawing.Color.
public static FromBytes ( this c, byte btColor ) : Color
c this
btColor byte
return Color

ToBytes() public static method

Converts a System.Drawing.Color to a three byte array.
public static ToBytes ( this c ) : byte[]
c this
return byte[]