On 11/02/2019 18:27, Sergey Bylokhov wrote:
On 11/02/2019 09:28, Alexey Ivanov wrote:
No, it does not look like it's possible directly.
In the case of DashOffset, VolatileImage contains #F8F8F8 instead of #FFFFFF, #0000CC instead of #0000FF, #00CC00 instead of #00FF00. In other configurations, the colours could be different. BufferedImage contains the expected colours.

But I thought the colors should be the same if the BI was created using IndexColorModel(or any other used by VI) instead of default color model?

Now I got your idea. It should work.
Actually, it can be used to get the values of the “dynamic” colours to validate VolatileImage, thus avoiding comparing the colour of every single pixel.

Let me experiment with this.
Would it be acceptable if I submit a new CR to improve these tests?

--
Regards,
Alexey

Reply via email to