🌈 Create new beautiful Compose Gradients with our new wesite ->
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.

Content updated: