createRenderTarget
expect abstract fun createRenderTarget( width: Int, height: Int, contentScale: Double = 1.0, multisample: BufferMultisample = BufferMultisample.Disabled, session: Session? = Session.active): RenderTarget(source)
Creates a render target with the specified dimensions, content scale, and multisampling options.
Return
A new instance of RenderTarget
configured with the specified parameters.
Parameters
width
The width of the render target in pixels.
height
The height of the render target in pixels.
contentScale
The content scale factor, used to scale the render target resolution. Defaults to 1.0.
multisample
The multisampling configuration for the render target. Defaults to BufferMultisample.Disabled
.
session
The session associated with this render target. Defaults to the currently active session.
actual abstract fun createRenderTarget( width: Int, height: Int, contentScale: Double, multisample: BufferMultisample, session: Session?): RenderTarget(source)
actual abstract fun createRenderTarget( width: Int, height: Int, contentScale: Double, multisample: BufferMultisample, session: Session?): RenderTarget(source)