C# 클래스 Mapsui.Styles.Thematics.ColorBlend

Defines arrays of colors and positions used for interpolating color blending in a multicolor gradient.
파일 보기 프로젝트 열기: pauldendulk/Mapsui

공개 메소드들

메소드 설명
ColorBlend ( System.Color colors, double positions ) : System

Initializes a new instance of the ColorBlend class.

GetColor ( double pos ) : System.Color

Gets the color from the scale at position 'pos'.

If the position is outside the scale [0..1] only the fractional part is used (in other words the scale restarts for each integer-part).

ThreeColors ( System.Color fromColor, System.Color middleColor, System.Color toColor ) : ColorBlend

Creates a linear gradient scale from three colors

TwoColors ( System.Color fromColor, System.Color toColor ) : ColorBlend

Creates a linear gradient scale from two colors

비공개 메소드들

메소드 설명
ColorBlend ( ) : System

메소드 상세

ColorBlend() 공개 메소드

Initializes a new instance of the ColorBlend class.
public ColorBlend ( System.Color colors, double positions ) : System
colors System.Color An array of Color structures that represents the colors to use at corresponding positions along a gradient.
positions double An array of values that specify percentages of distance along the gradient line.
리턴 System

GetColor() 공개 메소드

Gets the color from the scale at position 'pos'.
If the position is outside the scale [0..1] only the fractional part is used (in other words the scale restarts for each integer-part).
public GetColor ( double pos ) : System.Color
pos double Position on scale between 0.0f and 1.0f
리턴 System.Color

ThreeColors() 공개 정적인 메소드

Creates a linear gradient scale from three colors
public static ThreeColors ( System.Color fromColor, System.Color middleColor, System.Color toColor ) : ColorBlend
fromColor System.Color
middleColor System.Color
toColor System.Color
리턴 ColorBlend

TwoColors() 공개 정적인 메소드

Creates a linear gradient scale from two colors
public static TwoColors ( System.Color fromColor, System.Color toColor ) : ColorBlend
fromColor System.Color
toColor System.Color
리턴 ColorBlend