C# Class PixelFarm.DrawingGL.GLGradientColorProvider

显示文件 Open project: prepare/HTML-Renderer Class Usage Examples

Public Methods

Method Description
CalculateLinearGradientVxs ( float x1, float y1, float x2, float y2, PixelFarm c1, PixelFarm c2 ) : ArrayList
CalculateLinearGradientVxs2 ( float x1, float y1, float x2, float y2, PixelFarm c1, PixelFarm c2, float &v2f, float &colors ) : void

Private Methods

Method Description
AddRect ( ArrayList vrx, uint c1, uint c2, float x, float y, float w, float h ) : void
AddRect2 ( ArrayList vrx, uint c1, uint c2, float x, float y, float w, float h ) : void
AddVertext ( ArrayList vrx, float f0, float f1, float f2 ) : void

Method Details

CalculateLinearGradientVxs() public static method

public static CalculateLinearGradientVxs ( float x1, float y1, float x2, float y2, PixelFarm c1, PixelFarm c2 ) : ArrayList
x1 float
y1 float
x2 float
y2 float
c1 PixelFarm
c2 PixelFarm
return ArrayList

CalculateLinearGradientVxs2() public static method

public static CalculateLinearGradientVxs2 ( float x1, float y1, float x2, float y2, PixelFarm c1, PixelFarm c2, float &v2f, float &colors ) : void
x1 float
y1 float
x2 float
y2 float
c1 PixelFarm
c2 PixelFarm
v2f float
colors float
return void