Click or drag to resize
Ab4d.SharpEngine logo

SceneViewInitialize(Int32, Int32, Single, Single) Method

Initializes the SceneView with the specified size. This method can be called only when the SceneView was created without a Surface parameter (call Initialize(SurfaceKHR, Single, Single) or Initialize(VulkanSurfaceProvider, Single, Single) when a valid Surface is provided).

Namespace: Ab4d.SharpEngine
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public void Initialize(
	int width,
	int height,
	float dpiScaleX = 1f,
	float dpiScaleY = 1f
)

Parameters

width  Int32
width in pixels
height  Int32
height in pixels
dpiScaleX  Single  (Optional)
DPI x scale (1 by default)
dpiScaleY  Single  (Optional)
DPI y scale (1 by default)
Exceptions
ExceptionCondition
InvalidOperationException
See Also