SaveSnapshot(f$[, mode, fmt, table])
modeargument specifies the area to be grabbed. This can be one of the following constants:
Note that if the display is a palette mode display and you want the
image file to be palette-based as well, you need to use
as this is the only snap mode that doesn't contain any other graphics
besides the display's contents.
fmt argument specifies the desired output image format. This can either
be one of the following constants or an image saver provided by a
#IMGFMT_BMPis the default format used by
Qualityfield (see below) allows you to specify the quality level for the JPEG image (valid values are 0 to 100 where 100 is the best quality). (V4.0)
Dithertags (see below) to specify the number of palette entries to allocate for the image and whether or not dithering shall be applied. When using
#IMGFMT_GIFwith a palette display, no quantizing will be done.
#IMGFMT_GIFalso supports palette images with a transparent pen. (V4.5)
The optional table argument allows you to configure further parameters:
Trueto enable dithering. This tag is only handled when the destination format is palette-based and the source data is RGB. Defaults to
Falsewhich means no dithering.
Depthtag. Instead of a bit depth, you can pass how many colors the image shall use here. Again, this is only handled for palette-based formats when the source data is RGB. Valid values are between 1 and 256. Defaults to 256.
Here is an overview that shows which formats support which tags:
#IMGFMT_ILBM(V4.0) (defaults to
SaveSnapshot("Snap.bmp")Saves a snapshot of the Hollywood window to "Snap.bmp".