Utilities.Media.SwiftBitmap.Fill C# (CSharp) Method

Fill() public method

Fills the image with the specified color.
public Fill ( Color color ) : SwiftBitmap
color Color The color.
return SwiftBitmap
        public SwiftBitmap Fill(Color color)
        {
            Contract.Requires<NullReferenceException>(Data != null);
            SetPixels(0, 0, (Width * Height).Times(x => color).ToArray());
            return this;
        }