With an Image control, using %ss_centerimage, the border of a small image is set to the color of the pixel at 0,0 within the image.
Does anyone know why that choice was made? I'd guess it's a Windows thing, and that it dates from 256 color images where a selection from the image palette was the best choice. But I don't know for sure.
Is there a benefit to having it work that way today? Since I usually don't know what the top/left pixel color will be, I get a more or less random border for images that are smaller than the image control.
I'd personally prefer to have the border be the foreground color. Is there an easy way to do that? Anything that lets me control the border color would be better than letting the image decide for me.
Regards,
Gary
Does anyone know why that choice was made? I'd guess it's a Windows thing, and that it dates from 256 color images where a selection from the image palette was the best choice. But I don't know for sure.
Is there a benefit to having it work that way today? Since I usually don't know what the top/left pixel color will be, I get a more or less random border for images that are smaller than the image control.
I'd personally prefer to have the border be the foreground color. Is there an easy way to do that? Anything that lets me control the border color would be better than letting the image decide for me.
Regards,
Gary
Comment