Ejemplo n.º 1
0
 /// <summary>
 /// If DrawFunction defined, uses it to find the color on the supplied coordinates
 /// If not, returns the given color
 /// </summary>
 /// <param name="drawable"></param>
 /// <param name="x"></param>
 /// <param name="y"></param>
 /// <returns></returns>
 protected Color CalculatePixelColor(IDraw drawable, int x, int y)
 {
     return(null != drawable.DrawFunction ? drawable.DrawFunction(x, y, drawable.Color) : drawable.Color);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// If DrawFunction defined, uses it to find the color on the supplied coordinates
 /// If not, returns the given color
 /// </summary>
 /// <param name="drawable"></param>
 /// <param name="x"></param>
 /// <param name="y"></param>
 /// <returns></returns>
 protected Color CalculatePixelColor(IDraw drawable, int x, int y)
 {
     return null != drawable.DrawFunction ? drawable.DrawFunction(x, y, drawable.Color) : drawable.Color;
 }