GetColor() public method

public GetColor ( float x, float y ) : Color
x float
y float
return Color
示例#1
0
    public void EndSubBuffer(SVGLinearGradientBrush linearGradientBrush, SVGColor? strokePathColor)
    {
        PreEndSubBuffer();

        for(int i = inZoneL; i < subW + inZoneL; i++) {
          for(int j = inZoneT; j < subH + inZoneT; j++) {
        if(flag[i, j] != FILL_FLAG) {
          Color _color = linearGradientBrush.GetColor(i, j);
          graphics.SetColor(_color);
          graphics.SetPixel(i, j);
        }
          }
        }

        graphics.SetColor(strokePathColor.Value.color);

        FillInZone();
    }
示例#2
0
    //Fill Linear Gradient, with fill Stroke
    public void EndSubBuffer(SVGLinearGradientBrush linearGradientBrush, SVGColor? strokePathColor)
    {
        PreEndSubBuffer();

        for(int i = this._inZoneL; i < this._subW + this._inZoneL; i++) {
          for(int j = this._inZoneT; j < this._subH + this._inZoneT; j++) {
        if(this._flag[i, j] != -1) {
          Color _color = linearGradientBrush.GetColor(i, j);
          this._graphics.SetColor(_color);
          this._graphics.SetPixel(i, j);
        }
          }
        }

        this._graphics.SetColor(strokePathColor.Value.color);

        for(int i = this._inZoneL; i < this._subW + this._inZoneL; i++)
          for(int j = this._inZoneT; j < this._subH + this._inZoneT; j++)
        if(this._flag[i, j] > 0)
          this._graphics.SetPixel(i, j);
    }
示例#3
0
 public void EndSubBuffer(SVGLinearGradientBrush linearGradientBrush)
 {
     PreEndSubBuffer();
     for(int i = inZoneL; i < subW + inZoneL; i++) {
       for(int j = inZoneT; j < subH + inZoneT; j++) {
     if(flag[i, j] == 0) {
       Color _color = linearGradientBrush.GetColor(i, j);
       graphics.SetColor(_color);
       graphics.SetPixel(i, j);
     }
       }
     }
 }
示例#4
0
 //Fill Linear Gradient, no fill Stroke
 public void EndSubBuffer(SVGLinearGradientBrush linearGradientBrush)
 {
     PreEndSubBuffer();
     for(int i = this._inZoneL; i < this._subW + this._inZoneL; i++) {
       for(int j = this._inZoneT; j < this._subH + this._inZoneT; j++) {
     if(this._flag[i, j] == 0) {
       Color _color = linearGradientBrush.GetColor(i, j);
       this._graphics.SetColor(_color);
       this._graphics.SetPixel(i, j);
     }
       }
     }
 }