PixelScreenSpace ToPixelSpace Method (Size)Delta Engine Documentation

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

public override Size ToPixelSpace(
	Size currentScreenSpaceSize
)

Return Value

Type: Size
Remarks

Tests: DeltaEngine.Tests.ScreenSpaces.PixelScreenSpaceTests
Examples

1 unit tests call DeltaEngine.ScreenSpaces.PixelScreenSpace.ToPixelSpace(DeltaEngine.Datatypes.Size)
[Test]
public void ToPixelSpaceAndFromPixelSpace()
{
    var pixelScreen = new PixelScreenSpace(window);
    Assert.AreEqual(pixelScreen.TopLeft, pixelScreen.ToPixelSpace(pixelScreen.TopLeft));
    Assert.AreEqual(pixelScreen.BottomRight, pixelScreen.ToPixelSpace(pixelScreen.BottomRight));
    Assert.AreEqual(Size.Zero, pixelScreen.ToPixelSpace(Size.Zero));
    Assert.AreEqual(Size.One, pixelScreen.ToPixelSpace(Size.One));
    window.CloseAfterFrame();
}
See Also