Procedurality.Channel.brightness C# (CSharp) Method

brightness() public method

public brightness ( float brightness ) : Channel
brightness float
return Channel
		public Channel brightness(float brightness) {
			if (brightness > 1f) {
				for (int y = 0; y < height; y++) {
					for (int x = 0; x < width; x++) {
						putPixelClip(x, y, brightness*getPixel(x, y));
					}
				}
			} else {
				for (int y = 0; y < height; y++) {
					for (int x = 0; x < width; x++) {
						putPixel(x, y, brightness*getPixel(x, y));
					}
				}
			}
			return this;
		}