Namespace: DeltaEngine.ScreenSpaces
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Tests: DeltaEngine.Tests.ScreenSpaces.PixelScreenSpaceTests
1 unit tests call DeltaEngine.ScreenSpaces.PixelScreenSpace.ToPixelSpace(DeltaEngine.Datatypes.Size)
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Parameters
- currentScreenSpaceSize
- Type: DeltaEngine.Datatypes Size
Return Value
Type: SizeRemarks
Examples
[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