All Files
ImageStream.zip
ImageStream.au3
#include <GDIPlus.au3>
#include "InterfaceCall.au3"
#include <ScreenCapture.au3>
$hBMP = _ScreenCapture_Capture("")
$ByteStruct = SaveImageToStream($hBMP,"png")
FileWrite("NewImage.png",Binary(DllStructGetData($ByteStruct,1)))
$hBMP = LoadImageFromStream($ByteStruct)
MsgBox(0,"hBMP","$hBMP ==>" & $hBMP)
Func SaveImageToStream($hBMP,$ImageExt)
;$ImageExt File extension to search for (BMP, JPG, TIF, etc.)
Local $grfMode = BitOR(0