ImageTests DrawCustomImageFromColorClickToChangeIt Method Delta Engine Documentation

Namespace: DeltaEngine.Graphics.Tests
Assembly: DeltaEngine.Graphics.Tests (in DeltaEngine.Graphics.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void DrawCustomImageFromColorClickToChangeIt()
Examples

[Test, ApproveFirstFrameScreenshot]
public void DrawCustomImageFromColorClickToChangeIt()
{
    var customImage = ContentLoader.Create<Image>(new ImageCreationData(new Size(8, 8)));
    customImage.Fill(Color.Purple);
    new SolidSprite(customImage);
    new Command(Command.Click, () => customImage.Fill(Color.GetRandomColor()));
}
See Also