You can readily create a bitmap from the binary data that's read in from a file (via a simple binary FileRead) using _GDIPlus_BitmapCreateFromMemory(). But how do you do the reverse? That is, to generate/copy the binary data back from the bitmap so that it's the same as if you performed a binary FileRead()?
After reading all kinds of things on this issue, both here in the AutoIt fora and non-AutoIt sources elsewhere, I still haven't been able to find the answer. At first it seemed like _GD
Try this:
;Coded by UEZ 2013 -> This program requires AutoIt version 3.3.9.21 or higher!
#include <GDIPlus.au3>
#include <Memory.au3>
_GDIPlus_Startup()
Global $sFile = StringReplace(@AutoItExe, "autoit3.exe", "Examples\GUI\msoobe.jpg")
Global $hImage = _GDIPlus_ImageLoadFromFile($sFile)
Global $hBitmap = _GDIPlus_ImageResize($hImage, 10, 7)
Global $bImage = _GDIPlus_StreamImage2BinaryString($hBitmap)
ConsoleWrite("Error: " &a