spierce7
10/11/2021, 8:20 PMImageBitmap
pixels directly? If I wanted to create a filter for ImageBitmap
it doesn’t seem very intuitive. Is ImageBitmap even the best abstraction for me to create a filtering system on?Kirill Grouchnikov
10/11/2021, 8:39 PMspierce7
10/11/2021, 8:39 PMspierce7
10/11/2021, 8:40 PMKirill Grouchnikov
10/11/2021, 8:42 PMKirill Grouchnikov
10/11/2021, 8:43 PMspierce7
10/12/2021, 3:20 AMKirill Grouchnikov
10/12/2021, 4:09 AMspierce7
10/12/2021, 4:10 AMKirill Grouchnikov
10/12/2021, 5:00 AMbitmap = ImageBitmap(400, 400)
canvas = Canvas(bitmap.asDesktopBitmap())
shader = ... // your shader
paint = Paint()
paint.setShader(shader)
canvas.drawPaint(paint)
and at that point you can get the pixels from the bitmap and inspect them.Kirill Grouchnikov
10/12/2021, 5:00 AMKirill Grouchnikov
10/12/2021, 5:01 AMKirill Grouchnikov
10/12/2021, 5:02 AM