vector_graphics icon indicating copy to clipboard operation
vector_graphics copied to clipboard

Consider applying color filters to the rasterized vector graphic instead of the resulting image

Open jonahwilliams opened this issue 3 years ago • 0 comments

Context: https://github.com/dnfield/vector_graphics/pull/71/files/f6ebe3b00725a95710a345e9e0642fd2911e69ce#diff-6aefb41d5a9139706f33aa4ae6d68a7ed1c69f1ec5ae78f16dbb1f1cc2bee325

The idea is that since some filter types may be expensive, it could be beneficial to performance to instead rasterize them instead of using Paint on the drawImage call. The trade-off here is that we'd have to re-rasterize if the filter changed

jonahwilliams avatar May 20 '22 17:05 jonahwilliams