YouTube video by Evan Liu (for backgrounds skip to 12:00)

Multiple backgrounds

You can change the default background by adding a \_ISO\MyBackground.bmp.gz or MyBackground.bmp file or MyBackground.jpg or by modifying the \_ISO\MyE2B.cfg file
However, you can also have different background wallpapers for different menus (and change other menu settings like the menu text colours).
You can configure E2B so that each sub-menu displays a different background wallpaper bitmap. See video in my blog post here and also this YouTube video by Liu Evan.
Note: Wallpaper .bmp files can be compressed using 7Zip to gzip format, or, for even better compression, you can use the LZMA utility (see \_ISO\docs\E2B Utilities\LZMA\ReadMe_LZMA.txt for details on how to use drag-and-drop to compress any file).
E2B (i.e. grub4dos) will automatically detect if any .bmp or text file is compressed and how it has been compressed (the file extension is irrelevant).
The smaller the file, the faster it will load.
E2B v1.72+ can also use JPEG encoded graphics files for backgrounds (save using MS Paint for correct format).
Instructions below apply to E2B v1.62+ (the \_ISO\MAINMENU\$$$SetDefaultMenu.mnu file should be present).
The 9 'normal' menu folders can have a different background loaded using a .mnu file, however the \_ISO\AUTO and \_ISO\WINDOWS\xxxx folders require a different method.

Set the Main menu background (for use with multiple wallpapers)

To have a different background for a sub-menu, you must first set-up E2B so that the Main menu background will always be re-loaded when the Main menu is displayed - otherwise when you return to the Main menu, the menu background from the previous menu will still be displayed.
1 Make a new file at \_ISO\MAINMENU\$$$$CONFIG\CONFIG.mnu
2 Add a background image (splashimage) command, you can also add other commands such as color commands (if required), etc. to the CONFIG.mnu file - e.g.
Example 1: Place Aliums.bmp.gz file is in same folder as CONFIG.mnu file ($HOME$ = path of the .mnu file)
splashimage $HOME$/Aliums.bmp.gz
color red/black white/black
Add a second pair of colours to change the highlighted menu text colour. The 2nd colour in each pair is the background colour and will be ignored - or use 'color normal' and 'color highlight' as in Example 2...
Example 2: Place bitmap file in a different folder - .e.g. default E2B bitmap
splashimage /_ISO/e2b/grub/Background.bmp.gz
color normal=0x777700
color highlight=0xFFFF00 ;; # background will be transparent
Hex numbers must be greater than 0xFF. You can specify the background colour too, e.g. 0x00ff33ff00AABBCC (where first 8 is the background - 00rrggbb00RRGGBB).
Note: Any changes in this file will affect ALL the following menus unless you also use a similar CONFIG.mnu file for each sub-menu (see below).

Define different backgrounds for each 'normal' sub-menu

You can have a different backgrounds and other settings for one or more of the 'normal' types of sub-menu.
Someone has made a YouTube video showing you how to do this here.
Note: You must specify the Main menu background using a \_ISO\MAINMENU\$$$$CONFIG\CONFIG.mnu file otherwise the Main menu background will not be re-loaded when you go back to the Main menu.
This example is for the ANTIVIRUS sub-menu...

1. Create a new folder at \_ISO\ANTIVIRUS\$$$$CONFIG and place your background bitmap in the new folder.

2. Create a  \_ISO\ANTIVIRUS\$$$$CONFIG\CONFIG.mnu file with your settings- e.g. (assumes the bitmap file is in the same folder as the .mnu file)

splashimage $HOME$/Aliums.bmp.gz
color red/blue white/blue
Because the $$$$CONFIG folder will be enumerated first (E2B alphabetically sorts files), then the commands will be executed when the AntiVirus menu loads.
The color command is optional and will affect the menu text only. Add a second pair of colours to change the highlighted menu text colour. The 2nd colour in each pair is the background colour and will be ignored - or use 'color normal' and 'color highlight' as in Example 2 above.
If you want to use the same bitmap background for all of the sub-menus, then place the bitmap in the \_ISO folder (e.g. \_ISO\submenu.bmp.gz) and change the first splashimage line to:

splashimage /_ISO/submenu.bmp.gz

Then copy the $$$$CONFIG folder to all sub-menu folders (except WINDOWS and MAINMENU). This would mean that any change you make to the sub-menu CONFIG.mnu file would need to be copied to all other sub-menus however. So instead, your CONFIG.mnu could call a grub4dos batch file - e.g.
call /_ISO/submenu_config.g4b
splashimage /_ISO/submenu.bmp.gz
color red/blue
Then you would just need to change the submenu_config.g4b file to make the change affect all sub-menus.

Note: If you specify a different background in \_ISO\MAINMENU\$$$$CONFIG\CONFIG.mnu from the default \_ISO\MyBackground.bmp file (or the background file used in MyE2B.cfg), E2B will first load the \_ISO\MyBackground.bmp file (or default E2B file) and just before the Main menu is displayed, it will then load the background file from  \_ISO\MAINMENU\$$$$CONFIG\CONFIG.mnu . 

If you add 'call Fn.70 3' to the MyE2B.cfg file, then the user will see the default bitmap first during file enumeration and then the bitmap from $$$$CONFIG.mnu will be loaded when the Main menu is displayed. See video in my blog post here.


# WINCOUNT=1 below is only required if \FASTLOAD.YES exists and E2B v1.79 or earlier
###if exist /FASTLOAD.YES set WINCOUNT=1

# Show background wallpaper during file enumeration
call Fn.70 3

\_ISO\MAINMENU\$$$$CONFIG\CONFIG.mnu    (main menu image)
splashimage /_ISO/MainMenu.bmp.gz


Alternative Method

This method allows you to specify different wallpapers for the 9 menu folders from just one simple batch file.

1. Create a file \_ISO\SwitchBackground.g4b, containing the text...

if "%MFOLDER%"=="/_ISO/ANTIVIRUS"         set BG=lamp.jpg
if "%MFOLDER%"=="/_ISO/BACKUP"            set BG=moon.jpg
if "%MFOLDER%"=="/_ISO/DOS"               set BG=lakesunset.jpg
if "%MFOLDER%"=="/_ISO/LINUX"             set BG=girl19.jpg
if "%MFOLDER%"=="/_ISO/MAINMENU"          set BG=girl19.jpg
if "%MFOLDER%"=="/_ISO/UTILITIES"         set BG=profile800x600.jpg
if "%MFOLDER%"=="/_ISO/UTILITIES_MEMTEST" set BG=girl19.jpg
if "%MFOLDER%"=="/_ISO/WIN"               set BG=girl19.jpg
if "%MFOLDER%"=="/_ISO/WINPE"             set BG=smilegreen.jpg
splashimage /_ISO/%BG%
set BG=

if "%MFOLDER%"=="/_ISO/ANTIVIRUS"         set BG=lamp.jpg
if "%MFOLDER%"=="/_ISO/BACKUP"            set BG=moon.jpg
if "%MFOLDER%"=="/_ISO/DOS"               set BG=lakesunset.jpg
if "%MFOLDER%"=="/_ISO/LINUX"             set BG=girl1.jpg
if "%MFOLDER%"=="/_ISO/MAINMENU"          set BG=girl2.jpg
if "%MFOLDER%"=="/_ISO/UTILITIES"         set BG=profile800x600.jpg
if "%MFOLDER%"=="/_ISO/UTILITIES_MEMTEST" set BG=girl3.jpg
if "%MFOLDER%"=="/_ISO/WIN"               set BG=girl4.jpg
if "%MFOLDER%"=="/_ISO/WINPE"             set BG=smilegreen.jpg
splashimage /_ISO/%BG%
set BG=

You should change the name of the jpg/bmp files as required.

You can add color commands also if you wish, e.g.

if "%MFOLDER%"=="/_ISO/WINPE"             set BG=smilegreen.jpg && color normal=0xFF0000 && color highlight=0xFFFFFF

Tip: You can name the picture files as DOS.jpg, ANTIVIRUS.jpg, BACKUP.bmp, etc.

2. Create a new file at \_ISO\MAINMENU\$$$$CONFIG\SetBackground.mnu with the following contents:

call /_ISO/SwitchBackground.g4b

3. Copy the $$$$CONFIG folder (complete with the same SetBackground.mnu file) to each of the 8 other folders, e.g. \_ISO\ANTIVIRUS\$$$$CONFIG\SetBackground.mnu, \_ISO\BACKGROUND\$$$$CONFIG\SetBackground.mnu, etc.).

Do not copy the folder to \_ISO\AUTO or \_ISO\WINDOWS\xxxx folders because it will not be used.

4. Ensure the jpg or bmp files are in the \_ISO folder.

You can use a different folder to store the background files if you change the splashimage line in SwitchBackground.g4b to have the correct path.

Note: This method can also be used for the AUTO and WINDOWS\xxxx menus. Just place the text:

call /_ISO/SwitchBackground.g4b

into the \_ISO\AUTO.g4b and \_ISO\WINMENU.g4b, etc. files and modify the /_ISO/SwitchBackground.g4b batch file accordingly.


Background for AUTO (Direct) Menu (E2B v1.70+)

The file \_ISO\AUTO.bmp will be used as the background for the AUTO menu, if it is present. Note that you can compress the file using gzip or LZMA (best) or use a JPEG file, but the file name must remain as 'AUTO.bmp'.

  • \_ISO\AUTO.bmp

The bitmap must be the same size as the Main menu bitmap (e.g. 800x600).

If you want to set different colours for the menu text, then you must create a \_ISO\AUTO.g4b batch file - this will be used instead of the AUTO.bmp file - e.g.


color normal=0x1c highlight=0xe2
splashimage /_ISO/NEWAUTO.bmp


Note that you could (in theory) also load a different sized bitmap by setting the graphics mode - e.g.

color normal=0xc highlight=0xe
graphicsmode  -1  1024  768
splashimage /_ISO/AUTO1024.bmp
I don't recommend 1024x768 because some older netbooks can only display 800x600.
See the MyE2B.cfg file for other color commands (e.g. you could change the colour of the menu border frame or the console text colour).

Backgrounds for Windows Install menus (E2B v1.70+)

If any of the following files exist, they will be loaded as a background wallpaper for the appropriate Windows Install menu. If the file does not exist, then the background will be unchanged from the previous menu.

  • \_ISO\SVR2K8R2.bmp
  • \_ISO\SVR2012.bmp
  • \_ISO\VISTA.bmp
  • \_ISO\WIN7.bmp
  • \_ISO\WIN8.bmp
  • \_ISO\WIN10.bmp
  • \_ISO\SVR2016.bmp
  • \_ISO\WINMENU.bmp  (background for the Windows Install Menu - if any of the other Windows .bmp are used, this should also exist)

The bitmap must be the same xy size as the Main menu bitmap. You can compress .bmp files using gzip or LZMA, or use JPEG encoding (v1.72+), but the name+extension must not be changed (it must be .bmp).

If you only use \_ISO\WINMENU.bmp to change the Windows Install menu background, then all the Windows Install sub-menus will also use this background.

If you want to also change the colours (or other settings), then use a .g4b file (e.g. \_ISO\WINMENU.g4b) instead of a .bmp file - see AUTO section above for details of what to put in each file.


Adding 'Stamps'

With E2B v1.78+ and grub4dos 0.4.6a we can use the 'stamp' feature which will overwrite the wallpaper background with any small image we desire.
For instance, we could stamp a 300x100 'boiler plate' containing our company logo onto the wallpaper in the Main menu, and then stamp a 300x100 AntiVirus logo onto the AntiVirus menu wallpaper:


splashimage $HOME$/Aliums.bmp.gz
color red/blue white/blue
splashimage --offset=500=0 $HOME$/AVStamp.bmp


splashimage $HOME$/MMenu.bmp.gz
color red/black white/black
splashimage --offset=500=0 /_ISO/LogoStamp.bmp

500 is the x-coordinate, 0 is y-coordinate in the above example.