Namespace: DeltaEngine.Scenes
Assembly: DeltaEngine.Scenes (in DeltaEngine.Scenes.dll) Version: 1.1.1.0 (1.1.1)
Tests: DeltaEngine.Scenes.Tests.SceneTests
3 unit tests call DeltaEngine.Scenes.Scene.SetViewportBackground(System.String)
Assembly: DeltaEngine.Scenes (in DeltaEngine.Scenes.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Parameters
- imageName
- Type: System String
Remarks
Examples
[Test] public void SetLandscapeViewportBackgroundOnLandscapeWindow() { window.ViewportPixelSize = new Size(512, 288); scene.SetViewportBackground("CheckerboardImage512x288"); }
[Test] public void SetPortraitViewportBackgroundOnPortraitWindow() { window.ViewportPixelSize = new Size(288, 512); scene.SetViewportBackground("CheckerboardImage288x512"); }
[Test] public void SetChangingViewport() { window.ViewportPixelSize = new Size(288, 512); scene.SetViewportBackground("CheckerboardImage288x512"); window.ViewportPixelSize = new Size(512, 288); scene.SetViewportBackground("CheckerboardImage512x288"); }
See Also