ImageTests DrawCustomImageHalfTransparent 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 DrawCustomImageHalfTransparent()
Examples

[Test, ApproveFirstFrameScreenshot]
public void DrawCustomImageHalfTransparent()
{
    Resolve<Window>().BackgroundColor = Color.Yellow;
    var customImage = ContentLoader.Create<Image>(new ImageCreationData(new Size(64, 64)));
    customImage.Fill(new Color(0, 0, 0, 0.5f));
    customImage.BlendMode = BlendMode.Normal;
    new SolidSprite(customImage);
}
See Also