Branch: Tag:

2004-12-15

2004-12-15 20:59:30 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Made the right margin the same size as the top/bottom margin.

Rev: src/make_banner.pike:1.2

1:   /* -  * $Id: make_banner.pike,v 1.1 2004/11/08 18:15:08 grubba Exp $ +  * $Id: make_banner.pike,v 1.2 2004/12/15 20:59:30 grubba Exp $    *    * Make a 500×70 banner BMP image suitable for the Wix installer.    *
24:    }    mapping(string:Image.Image) logo = Image._decode(logo_bytes);    Image.Image banner = Image.Image(500, 70, 255,255,255); +  int margin = (70 - logo->img->ysize())/2;    banner->paste_mask(logo->img, logo->alpha, -  490-logo->img->xsize(), -  (70 - logo->img->ysize())/2); +  500 - (margin + logo->img->xsize()), margin);    write(Image.BMP.encode(banner));    return 0;   }