3 ms·
This is however not the same operation, changing the palette will affect all pixel of that color, flood fill affects only all the pixels in the connected compon
by danbruc 3y ago
This is however not the same operation, changing the palette will affect all pixel of that color, flood fill affects only all the pixels in the connected component you clicked on.
- stkdump 3y ago> changing the palette will affect all pixel of that color Not necessarily, because same color doesn't require same palette index. If you are going to preprocess the image anyway, you can assign one palette index to each connected component.