League of Extraordinary Multiboxers
Posts: 1223
Joined: Wed Jan 26, 2011 2:17 am
Location: Under the milky way tonight
Is ISBoxer scaling Click Bar Buttons?
Recently I tried to create some Click Bars identical to my in-game action bars (which are in a custom UI for which I made the graphics). The results were not quite what I expected.
In the first image below you can see the comparison between the ISBoxer Click Bar image (top 6 squares) and the in-game UI (bottom 6 squares). Both are using the same base image, which is 34x34 pixels. The game (Vanguard) is displaying this image pixel for pixel (34x34) but despite me selecting a 34x34 cell for my ISBoxer Click Bar, ISBoxer seems to be scaling that image down to 32x32 and the scaling/interpolation is reducing the color saturation.
I suspected ISBoxer may want image sizes to be powers of 2, but while that gives better color results, the size of the resultant image is again not what I would expect. The image below shows a comparison between the ISBoxer Click Bar image (top) and the in-game UI (bottom). This time I made a 32x32 pixel image for use in the Click Bars (still with exactly 3 pixels in the border - black, bronze, black) and used a cell size of 32x32 for the Click Bar buttons. The color comes out much closer but now the Click Bar buttons seem to have been scaled down to 30x30. It seems like ISBoxer is adding a 1 pixel transparent border.
In the third image below both the source image (recreated to have 3 pixels in the border - black, bronze, black) and the Click bar Button cell size are 36x36 pixels. Again, the Click Bar Button images (top) appear to have been scaled down (this time to 34x34) with a resultant loss in color saturation.
As far as I can tell neither the Cell Border Size (set for the Click Bar) or the Border Size (set for the image) has any effect in this situation. I made sure Alpha was set to 255 for my Click bar. In case it matters, source images were PNG with the lowest possible level of compression. The same results occur if I use TGA for source images. A side by side comparison of the original image (GIMP XCF format) and the exported PNG or TGA shows no loss of saturation through export.
Could there be something I'm doing wrong or is this something in ISBoxer's image handling?