C# 클래스 Q42.HueApi.ColorConverters.Original.HueColorConverter

Used to convert colors between XY and RGB internal: Do not expose
파일 보기 프로젝트 열기: Q42/Q42.HueApi 1 사용 예제들

공개 메소드들

메소드 설명
CalculateXY ( RGBColor color, string model ) : CGPoint
HexFromState ( State state ) : string

Returns hexvalue from Light State

HexFromState ( State state, string model ) : string

Returns hexvalue from Light State

XyFromColor ( int red, int green, int blue ) : CGPoint

Get XY from red,green,blue ints

비공개 메소드들

메소드 설명
CheckPointInLampsReach ( CGPoint p ) : bool

Method to see if the given XY value is within the reach of the lamps.

CheckPointInLampsReach ( CGPoint p, List colorPoints ) : bool
ColorFromXY ( CGPoint xy, string model ) : RGBColor
ColorPointsForModel ( string ModelID ) : List
CrossProduct ( CGPoint p1, CGPoint p2 ) : float
GetClosestPointToPoint ( CGPoint A, CGPoint B, CGPoint P ) : CGPoint

Find the closest point on a line. This point will be within reach of the lamp.

GetClosestPointToPoints ( CGPoint A, CGPoint B, CGPoint P ) : CGPoint
GetDistanceBetweenTwoPoints ( CGPoint one, CGPoint two ) : float
HexFromXy ( double xNumber, double yNumber ) : string

Get the HEX color from an XY value

XyFromColor ( string red, string green, string blue ) : CGPoint

Get XY from red,green,blue strings / ints

메소드 상세

CalculateXY() 공개 정적인 메소드

public static CalculateXY ( RGBColor color, string model ) : CGPoint
color RGBColor
model string
리턴 CGPoint

HexFromState() 공개 정적인 메소드

Returns hexvalue from Light State
public static HexFromState ( State state ) : string
state State
리턴 string

HexFromState() 공개 정적인 메소드

Returns hexvalue from Light State
public static HexFromState ( State state, string model ) : string
state State
model string
리턴 string

XyFromColor() 공개 정적인 메소드

Get XY from red,green,blue ints
public static XyFromColor ( int red, int green, int blue ) : CGPoint
red int
green int
blue int
리턴 CGPoint