|
Post by larrybtoys on Sept 1, 2023 19:01:50 GMT 1
Does anyone know of a bug using the FILL command? I am creating a tile all white and simply filing the 4 sides yet I have 3-6 pixels throughout the tile empty... I will attach a copy of the tile I am trying to fill. Attachments:
|
|
|
Post by (X) on Sept 2, 2023 11:41:21 GMT 1
Could it be because it's a jpg with subtle color differences in the pixels that are not being overwritten?
Using Paint.Net, if you try to select a region with 1% tolerance, this shows pixels that are similar but not an exact match to the surrounding colors.
|
|
|
Post by larrybtoys on Sept 2, 2023 14:37:51 GMT 1
I did see that at first and took the image into CorelPaint, repainted everything white that was supposed to be white and resaved it but still had issues. Perhaps my image was not getting saved as pure white afterwards. I worked around it by not using an image and simply drawing the tile and then filling the areas with colors. I had other issues as well with the left side not getting filled all the way until I started drawing the tile with pure white. It seems the FILL command is pretty picky with what it's filling...
|
|
|
Post by (X) on Sept 2, 2023 17:27:11 GMT 1
I would say the fill command is going to be very picky if you give it a color to replace.
I don't know how it decides which is the border color. Hmmm...
|
|
|
Post by dragonjim on Sept 4, 2023 10:54:36 GMT 1
The FILL command is simply a wrapper for Windows' GDI library APIs; there are three implementations inside the OCX covering different contingencies but all appear to be correctly formatted. Hence, any bug that there might be is most likely in the Windows API and not GFAs implementation of them. If you believe that GFA is the problem, this page gives a good tutorial in how to use the underlying GDI APIs without going through the GFA interface. You can also use the GDI+ library (slower but with gradient fills) - a brief taster here; Peter Heinzig has created a GFA friendly GDI+ library but at the time of writing his server seems to be down (www.peterheinzig.de)
|
|