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

[Test, CloseAfterFirstFrame]
public void LoadExistingImage()
{
    var image = ContentLoader.Load<Image>("DeltaEngineLogoOpaque");
    Assert.AreEqual("DeltaEngineLogoOpaque", image.Name);
    Assert.IsFalse(image.IsDisposed);
    Assert.AreEqual(new Size(128, 128), image.PixelSize);
}
See Also