Function

clipOutline

Intersects the current clip region with outline.

clipOutline

Source set: JvmAndAndroid
public fun RemoteDrawTransform.clipOutline(outline: RemoteOutline)

Intersects the current clip region with outline.

Emits a path clip, so callers must verify that the active profile supports path clipping (see androidx.compose.remote.creation.compose.capture.currentProfileSupportsPathClip).

Parameters

outline RemoteOutline to clip to

clipOutline

Source set: JvmAndAndroid
public fun RemoteDrawScope.clipOutline(outline: RemoteOutline, block: RemoteDrawScope.() -> Unit)

Clips the drawing area to outline while running block.

Emits a path clip, so callers must verify that the active profile supports path clipping (see androidx.compose.remote.creation.compose.capture.currentProfileSupportsPathClip).

Parameters

outline RemoteOutline to clip to
block drawing commands to run within the clipped area
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: