Function

setTextureShader

Set the texture shader

setTextureShader

Source set: Android
override fun setTextureShader(
        bitmapId: Int,
        tileX: Short,
        tileY: Short,
        filterMode: Short,
        maxAnisotropy: Short,
    )

Set the texture shader

Parameters

bitmapId the id of the bitmap to use
tileX The tiling mode for x to draw the bitmap in.
tileY The tiling mode for y to draw the bitmap in.
filterMode the filter mode to be used when sampling from this shader.
maxAnisotropy The Anisotropy value to use for filtering. Must be greater than 0.
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: