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

[Test, ApproveFirstFrameScreenshot]
public void DrawOpaqueImageWithVertexColors()
{
    Resolve<Window>().BackgroundColor = Color.CornflowerBlue;
    new ColoredSprite(ContentLoader.Load<Image>("DeltaEngineLogoOpaque"));
    RunAfterFirstFrame(
        () => Assert.AreEqual(4, Resolve<Drawing>().NumberOfDynamicVerticesDrawnThisFrame));
}
See Also