Click or drag to resize
Ab4d.SharpEngine logo

SceneViewInitialize(Int32, Int32, Single, Single, Int32, Single) Method

Initializes the SceneView with the specified size. This method can be called only when the SceneView was created without a Surface parameter.

Namespace: Ab4d.SharpEngine
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.0.9208+3b2441d6a11f923f2600f40f4296bdc3d8b46035
Syntax
C#
public void Initialize(
	int width,
	int height,
	float dpiScaleX = 1f,
	float dpiScaleY = 1f,
	int multisampleCount = 1,
	float supersamplingCount = 1f
)

Parameters

width  Int32
width in pixels (when using DPI scale then the width of the client size that is reported by the UI framework may need to be multiplied by the DPI scale).
height  Int32
height in pixels (when using DPI scale then the height of the client size that is reported by the UI framework may need to be multiplied by the DPI scale).
dpiScaleX  Single  (Optional)
DPI x scale (1 by default). This value is used in line and pixel rendering and scales the line thickness or size of pixels.
dpiScaleY  Single  (Optional)
DPI y scale (1 by default). This value is used in line and pixel rendering and scales the line thickness or size of pixels.
multisampleCount  Int32  (Optional)
multi-sample (MSAA) count (1 by default that does not use any MSAA). MSAA produce smoother edges by storing multiple color values for each pixel.
supersamplingCount  Single  (Optional)
super-sample (SSAA) count (1 by default that does not use any SSAA). SSAA is a technique that renders the image at a higher resolution and then down-samples the rendered image to the final resolution.
Exceptions
ExceptionCondition
InvalidOperationException
See Also