Apache OpenOffice (AOO) Bugzilla – Issue 68180
Tolerance in Eyedropper wrong on bitmaps
Last modified: 2017-05-20 11:29:22 UTC
Take a draw document and draw a rectangle. Set the background to gradient from red to green. Copy rectangle and insert it as "Bitmap". Copy rectangle and convert it to "Bitmap". Export the rectangle to any bitmap file format, for example to 'Portable Network Graphic (.png)'. Insert the graphic. Open eyedropper, fetch red with the pipette, set 'Replace with' to blue with tolerance 50%. Now click on the bitmaps you have created above and click on Replace button. You will get a blue part of about a quarter, but it should be a half. To see, how it should work, export the rectangle to 'Enhanced Metafile' and insert that graphic. Use Replace there and you get a blue part of half of the rectangle.
Created attachment 38289 [details] example with the described bitmaps
Reproducible, somehow. I cannot figure out exactly for what the procent number is used here. If I have a rectnagle with a black to white gradient left to right converted to bitmap and I replace 50% black one should think that half of the filling is replaced. But it is not. It seems to be one fourth. 100% replacing black replaces just about 40 % of the filling.
AW->THB: I do not know where the color replace mechanisms are which are used here, but i guess they are under Your control.
Reset assigne to the default "issues@openoffice.apache.org".