Hi ojdo.
1st of all, thanks for your reply and your effort to make the foobar2000 application more user friendly in order to change the looks of it and share the results with all the others.
Sorry, but I'm not that much of a geek and the scripting language can be kinda confusing for someone who don't understand it as much as guys like you do.
Anyway, I was talking about embedded album art only and the way I understood you was that it isn't possible to set a fixed size for embedded album art is that correct?
If yes, there is no point to go any further from here but if there is a way I would like to know the parameters to set the maximum size of the displayed album art to 450x450.
These are the only parameters I could find that kinda fit your description:
// Albumart: Calculations and reflection
if(g_albumart) {
var scale_w = 0.45*ww / g_albumart.Width;
var scale_h = 0.9*(0.75*wh) / g_albumart.Height;
var scale = Math.min(scale_w, scale_h);
var img_w = g_albumart.Width * scale;
var img_h = g_albumart.Height * scale;
var pos_x = 0.45*ww-img_w;
var pos_y = 0.75*wh-img_h;
gr.DrawImage(g_albumart_rot, pos_x, pos_y+img_h, img_w, img_h, 0, 0, g_albumart.Width, g_albumart.Height);
gr.FillGradRect(pos_x,pos_y+img_h,img_w,wh/6, 90, RGBA(0,0,0,128), RGB(0,0,0,255));
gr.FillSolidRect(pos_x,pos_y+img_h+wh/6,img_w,5*wh/6, RGBA(0,0,0,255));
}
Please give me a hint on how to change them in order to display the embedded album art in a maximum size of 450x450.
Thanks a lot, your help is very much appreciated.