[id] = CreateBGPic(id, width, height[[, color], table])
id
argument, CreateBGPic()
will choose an identifier
for this background picture automatically and return it to you.
Starting with Hollywood 9.0, there is an optional table argument that allows you to specify further options. The following table tags are currently supported:
Palette:
#PALETTE_AGA
. See SetStandardPalette for a list of inbuilt palettes.
FillPen:
Palette
tag is set (see above), you can use this tag to set the pen that
should be used for filling the background picture's background. Note that the color
parameter that is passed to CreateBGPic()
is ignored if Palette
is
True
. That's why this tag is here to allow you to specify a pen that
will be used when initializing the background picture's pixels. Defaults to 0.
TransparentPen:
Palette
is set to True
, this tag can be used to specify a pen that
should be made transparent in the new background picture. Defaults to #NOPEN
which
means that there should be no transparent pen.
#BLACK
)CreateBGPic(2, 640, 480)The above code creates a new black BGPic with the id 2 and the dimension of 640x480.