static void SetDestination(int x, int y, float value) { var col = destination.PixelUnSafe(x, y); col.r = value; col.g = value; col.b = value; destination.SetPixelUnSafe(x, y, col); }
/// <param name="maxInside"> /// Maximum pixel distance measured inside the edge, resulting in an alpha value of 1. /// If set to or below 0, everything inside will have an alpha value of 1. /// </param> /// <param name="maxOutside"> /// Maximum pixel distance measured outside the edge, resulting in an alpha value of 0. /// If set to or below 0, everything outside will have an alpha value of 0. /// </param> /// <param name="postProcessDistance"> /// Pixel distance from the edge within which pixels will be post-processed using the edge gradient. /// </param> static void SetColor(int x, int y, float value, float scale) { var col = img.PixelUnSafe(x, y); col.r = value; col.g = value; col.b = value; img.SetPixelUnSafe(x, y, col); }