Function Reference


_ScreenCapture_SetBMPFormat

Sets the bit format that will be used for BMP screen captures

#include <ScreenCapture.au3>
_ScreenCapture_SetBMPFormat ( $iFormat )

Parameters

$iFormat Image bits per pixel (bpp) setting:
    0 = 16 bpp; 5 bits for each RGB component
    1 = 16 bpp; 5 bits for red, 6 bits for green and 5 bits blue
    2 = 24 bpp; 8 bits for each RGB component
    3 = 32 bpp; 8 bits for each RGB component. No alpha component.
    4 = 32 bpp; 8 bits for each RGB and alpha component

Return Value

None.

Remarks

If not explicitly set, BMP screen captures default to 24 bpp

Example

#include <ScreenCapture.au3>

Example()

Func Example()
    ; Capture full screen
    _ScreenCapture_SetBMPFormat(0)
    _ScreenCapture_Capture(@MyDocumentsDir & "\GDIPlus_Image.bmp")

    ShellExecute(@MyDocumentsDir & "\GDIPlus_Image.bmp")
EndFunc   ;==>Example