Reference/SetBrandingImage: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
(Created page with "=SetBrandingImage= [/IMGID=item_id_in_dialog] [/RESIZETOFIT] path_to_bitmap_file.bmp Sets the current bitmap file displayed as the branding image. If no IMGID is specified, th...") |
mNo edit summary |
||
Line 4: | Line 4: | ||
Sets the current bitmap file displayed as the branding image. If no IMGID is specified, the first image control found will be used, or the image control created by [[Reference/AddBrandingImage|AddBrandingImage]]. Note that this bitmap must be present on the user's machine. Use File first to put it there. If /RESIZETOFIT is specified the image will be automatically resized (very poorly) to the image control size. If you used [[Reference/AddBrandingImage|AddBrandingImage]] you can get this size, by compiling your script and watching for [[Reference/AddBrandingImage|AddBrandingImage]] output, it will tell you the size. SetBrandingImage will not work when called from .onInit! | Sets the current bitmap file displayed as the branding image. If no IMGID is specified, the first image control found will be used, or the image control created by [[Reference/AddBrandingImage|AddBrandingImage]]. Note that this bitmap must be present on the user's machine. Use File first to put it there. If /RESIZETOFIT is specified the image will be automatically resized (very poorly) to the image control size. If you used [[Reference/AddBrandingImage|AddBrandingImage]] you can get this size, by compiling your script and watching for [[Reference/AddBrandingImage|AddBrandingImage]] output, it will tell you the size. SetBrandingImage will not work when called from .onInit! | ||
''Command introduced with NSIS v2.0'' |
Latest revision as of 11:23, 3 June 2013
SetBrandingImage
[/IMGID=item_id_in_dialog] [/RESIZETOFIT] path_to_bitmap_file.bmp
Sets the current bitmap file displayed as the branding image. If no IMGID is specified, the first image control found will be used, or the image control created by AddBrandingImage. Note that this bitmap must be present on the user's machine. Use File first to put it there. If /RESIZETOFIT is specified the image will be automatically resized (very poorly) to the image control size. If you used AddBrandingImage you can get this size, by compiling your script and watching for AddBrandingImage output, it will tell you the size. SetBrandingImage will not work when called from .onInit!
Command introduced with NSIS v2.0