ColorGlove.Filter.Paint C# (CSharp) Метод

Paint() приватный статический Метод

private static Paint ( ProcessorState state, System color ) : void
state ProcessorState
color System
Результат void
        private static void Paint(ProcessorState state, System.Drawing.Color color)
        {
            for (int x = state.crop.Value.X; x <= state.crop.Value.Width + state.crop.Value.X; x++)
            {
                for (int y = state.crop.Value.Y; y <= state.crop.Value.Height + state.crop.Value.Y; y++)
                {
                    int idx = Util.toID(x, y, width, height, kColorStride);
                    state.bitmap_bits[idx] = color.B;
                    state.bitmap_bits[idx + 1] = color.G;
                    state.bitmap_bits[idx + 2] = color.R;
                }
            }
        }