 |
SceneViewResize(Int32, Int32, Boolean) Method |
Resizes the SceneView. When the SceneView is not rendered to a
Surface, it is directly resized
to the specified size. When the SceneView is rendered to a
Surface and the surface provides
size information, the latter is used and the provided dimensions are ignored. However, if the surface does
not provide size information, the provided dimensions are used as a fallback. This allows caller to
accommodate situations when rendering to a surface that does not provide size information (e.g., using
Silk.NET under Wayland on Linux).
Namespace: Ab4d.SharpEngineAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntaxpublic bool Resize(
int newWidth = -1,
int newHeight = -1,
bool renderNextFrameAfterResize = true
)
Parameters
- newWidth Int32 (Optional)
- new 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). Ignored when rendering to a surface that provides size information. When -1 (by default) then the current Width is used.
- newHeight Int32 (Optional)
- new 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). Ignored when rendering to a surface that provides size information. When -1 (by default) then the current Height is used.
- renderNextFrameAfterResize Boolean (Optional)
- true (by default) to render next frame after resizing
Return Value
Booleanfalse when no resize was needed because the size was already set
Remarks[Missing <remarks> documentation for "M:Ab4d.SharpEngine.SceneView.Resize(System.Int32,System.Int32,System.Boolean)"]
See Also