Add checkbox to color picker to use all layers#674
Conversation
|
A nice new feature! However. :) Isn't possible to add another function ReturnRenderedUncheckeredImage() to Image.cpp that does all the usual rendering, but without the BitmapUtilities::CheckerBitmap()? |
|
i agree thats why i mentioned it. but its not that simple to fix because the ReturnRenderedImage just returns a pointer to the already rendered image and it has a checker bg already. I dont know why the renderedImage has a checker bg in the first place so i think that is what needs to be fixed but the image code is a bit complicated. it feels like you would never want a checker bg rendered in the image but i dont know yet how to make it just a bg that isnt in the image. looks like when you save a image ArtPaint redraws with no bg and then saves it and redraws with the checker afterward. maybe making a copy of the image with no bg would work but it is a waste of memory |
|
i have ideas to fix it but maybe it should be a separate pr |
I'm not 100% sure, but at least one reason to have the checkers in there, is to keep the checkers fixed when zooming in/out etc. At least I think I remember something like that... Dunno if @dsizzle has time/recollection to chime in here.
Yeah, let's merge this one after the needed changes of another PR are merged. |
|
yes if it works. i didnt know if it would need any rebase/cleanup but if its clean then go for it |
|
Works perfectly now. Merge! |
this seemed like a pretty easy fix and works in my testing
but one weird thing is if you choose 'sample all layers' then it can get the color of the checkerboard bakground but i don't think that is fixable because of how the image is rendered in Artpaint?
Fixes #487