PageFilter
class PageFilter(hratio: Ratio = Ratio.ZERO, hamplitude0: Double = 0.0, hamplitude1: Double = 10.0, hamplitude2: Double = 0.0, vratio: Ratio = Ratio.HALF, vamplitude0: Double = 0.0, vamplitude1: Double = 0.0, vamplitude2: Double = 0.0) : ShaderFilter
A filter that simulates a page of a book.
Constructors
Properties
Functions
Link copied to clipboard
The number of pixels the passed texture should be bigger at each direction: left, right, top, left.
Link copied to clipboard
Link copied to clipboard
open override fun render(ctx: RenderContext, matrix: Matrix, texture: Texture, texWidth: Int, texHeight: Int, renderColorMul: RGBA, blendMode: BlendMode, filterScale: Double)
The method in charge of rendering the texture transformed using ctx and matrix. The method receives a texture that should be the original image with computeBorder additional pixels on each side.
Link copied to clipboard
Link copied to clipboard
fun Filter.renderToTextureWithBorderUnsafe(ctx: RenderContext, matrix: Matrix, texture: Texture, texWidth: Int, texHeight: Int, filterScale: Double, result: RenderToTextureResult = RenderToTextureResult()): RenderToTextureResult