Jump to content

File to Base64 String Code Generator v1.20 Build 2020-06-05 (embed your files easily)


UEZ
 Share

Recommended Posts

Btw, I had a quick look to the link you have provided and I can embedd any image using the code generator

Test.htm

<img src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAgAElEQVR4nO29eXRc1Zkv+tv7jDVqtiZkWR4wk23MZCAMNs+LMe68hA4JXOh0uukbQhLSSVZ3sm5uv5vum75r9bvk9gO6OwxJB0jIQCCEMIQ0EANhNNgxNniQZFmTJVlzlWo4wx7eH3V2+ahcsmVb8pD0t9ZedXRUdc4++/t9v+/b3x4OkVLiP+WPV+iJrsB/yokVHQBs2wYAOI5zQiszn2LbdhuA6tCppQAqguPNofPccZytx61icyhKj7MRpWt9vipzIsS27YUAzkJBuStCxw26YYJSvejvdMMCoRoAwHdzxWtIKWHbNgGQB7ADwHYAnUHZfaqCYyYhwQMDOPUYwLbtBgBXArgWwFWabi40TEvqhg3DjEjDsqEbtjQMU1ACSSkVhEBSQiSlRGiUSCEkEVJSLiQBQISQhAtJOefE9/LUd/Ngvkt83wHzXPhePg3g1aA85zjO7hPYBNPkaBjglAOAbdsrANwC4OOaZiw3IzEZiVZIO5YUtmVzQ6fcNDTfNDTfMjXf0CkzdMoJIRIAYrEYPffcc6e1VCqV4h988IGr/pYSYFxojHHd9YXh+Vz3PG54jOue52v53JTm5qdIPpsC891RAL8F8EPHcZ47nm1RKn+wALBtuw7AnwG41TDtVdFEtYzGK2UkEmO2qXvRiO5GbMM1depfeuklkTPPPNNoamoy6urqjJqaGp1SimQyOWt3l8lkuOu6cmRkxJ+amuLd3d3e1q1bnfff3+b5Ptccn1nZPLMcl1mO42j53JSWTY8RJ5ceBfBDFMBw3F3FHxwAbNu+AcDnNU2/IZqolvFkNY/Hk34sYjjxqOFEI5a3YcNH45FIBD/72c8mv/71ry+47LLLEvNVHyEExsfHWV9fn/fee+/lX3rppexEKq3l8szK5PxILpc30pOjejYzTnw3/wGA+wF8z3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qHkUxRf8T3BjHA/3qIcPdwONdOOfEdV0yNTWFiy66SD7zzDP6v/7rv0YXL14cjg+m9RjmkwmULkLUD1noHaiUPCEEhBIgFo9JAGsQYlRl8cCYersAABpPSURBVAAA13WJaZqro9GYpBSSUgLG+DS/G4iqAALlI0Aj5lGK9yupywmTIE6Qa9euxTXXXKP/8pe/1O+9917W29sbHnU8KKs4F0IOjBGoRi9+hgyTCCGCFUcE0WhMADgPBXAWGzCcCaQAVkYiEUkpURk35QKILAiRUgp173CRUs4bCMKAU+VkEOVvPc+T1157LW644Qb9qaee0u+99162f/9+lVqecyCUtHPRJYfZWbWRDFYrx2JxSQg5BwWdF9PCYQBohJCzo7HYtG6JCC3gDN1ABkmf46WMYi9AscDJJKr7RSmVGzZswIYNG/THH39cv++++/xUKsVQYASB+WEEEtQhPBg3zSVQQhCNRCQKr88xABSHfcMA0AEstCxLKotWyg2UTUQoz68Ygswz94cl3FU7GUUBQdM0+clPfpLceOONxmOPPWbcf//9fiaTYSSYuIpjnJmkmjwUAALT4wPgQIwAqlGp6ToxDDMihDgNwE51rXAQqAFosSxbkgOLOIrdvBAIpgUjcn67f6XluPcAjqao+ZG+78vbbrsNr7zyivG5z30uEolELCGEKaU8pq5juM1Dx+r+xW6hOkcKmCGWZQLAonBPoAgATdNilNIa0zShJu2U+NuwpU/r8oWP50sAhMcfToni+74atpWf//znsXHjRuPmm2+2CSFFEBBC6OGefTYSBoLShwIECeI007JACGkL650ChR4ApbTJMAxJKSnucoWSfXrDQkqCwONRpqampvUETpXieR6mpqakEEL+zd/8DXnyySfNJUuWmCi4XXK07RGIDOtjppissIrIlADqw8YcjgFqdF2ftpOV8ieBBRb9vbp5SUXmU6YFOkcwBn9SiUox19fX45577tH/6q/+iuzfv18GbXhEMUEJGMLdwWkuU32XBlPjAFSh4H4YcIAKKBQADlyo+PtQLHBQoHGcSrFOJ9q/H2sRojALKh6P41Of+pQmpdTlgRVORxUPhGO10DmEzwEgRgEAtQivuzwAEhKllAIl
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SVbgkqURoDsTSpUsxODhYXOQKAFLKFA7smDoppRyWUu4XQgxJKUdQUG4KBUWng7+nUPDrORT68T4AEQ7uQtcve3y0cqwAOObRwGOVcCOUUjIAXHnlleo1a97GjRt9FBo5hQIzmCgAIoJCujkKICKEiAohosF5OygmCq5FQwEEdOfOnQ1SygkppYPCmgeOgvJ8FKzXCe6XQ2EoNh8cZ0N/OyhMiGEAuFI6MD0/MdMzn2g5ZgY4kRJMR9NQALKBA0o2UWALBRI9VNRvaHAsg6IAoEoYCC4KSvZLCgcgj2VS5omSk4YBjkWChmdBcQJAEBSUq5UUGvpf+HtK+TJUeHBOBNcu/n0qKvtQ8v8D4Ee/B4FpdqcAAAAASUVORK5CYII="
width="128" height="128" alt="embedded png image">

Br,

UEZ

Wow, amazing, is it possible for other kind of data? Maybe for example a download link with <a href=" Base64 here ?! ">
Link to comment
Share on other sites

Wow, amazing, is it possible for other kind of data? Maybe for example a download link with <a href=" Base64 here ?! ">

I'm not familiar with HTML coding but it should be possible. Beside that I cannot see the logic to convert a download link to base64.

You don't think there would be a way of determining, by looking at n-bytes of the decoded string, if it is compressed or not?

I can't seem to find a pattern.

As far as I know there is no header information after compressing any binary data using the build in function in ntdll.dll. You have to know whether file was compressed or not.

On another approach, in which cases did you find the compression to be of disadvantage?

I'm dealing with files from around 20kB to medium 150kB, maximum 20MB.

Personally I think it wouldn't hurt to always compress the data. In a database it would make sense to have that sort of consistency.

Thanks

Just compare the file size with compressed size. If compressed size is larger than the file size it makes no sense to compress it. If the compression benefit is very small it can be that the overall code length is larger because of decompression function.

Br,

UEZ

Edited by UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Link to comment
Share on other sites

As far as I know there is no header information after compressing any binary data using the build in function in ntdll.dll. You have to know whether file was compressed or not.

Just compare the file size with compressed size. If compressed size is larger than the file size it makes no sense to compress it. If the compression benefit is very small it can be that the overall code length is larger because of decompression function.

Thanks. I've decided I'll go with DB consistency. So, after some tests and an average space saving of > 40%, I chose to compress everything ;)

Link to comment
Share on other sites

I don't want to get too much out of topic here, so I'll be brief just for the sake of letting people know the result of my experiment.

Your script works like a charm for small files, which is probably what it was intended for in the first place.

Starting with a filesize of 500kB or so it becomes really slow, perhaps proportionally - I haven't checked.

So now I'm zipping the files before inserting them into the database, in binary form. Care must be taken to INSERT, UPDATE and SELECT small chunks of data at a time. SUBSTRING(field_name, binary_start_pos, binary_read_bytes) and DATALENGTH(field_name) seem to work well, but I've read that depending on the SQL Server's version, datalength() results can vary.

Why zip? Well, it's a widely used format and it comes integrated with Windows since... whenever. Plus, if in the future some data recovery needs to be done, it'll be much easier to determine what kind of data is or should be there.

I'm using this UDF:

Thanks again!

Link to comment
Share on other sites

By default the compression strength is set to high. That means for bigger files the compression speed will be worse.

You can change the compression strength when you hover your mouse over Compression label, press right mouse button and set it to standard. It will increase the compression speed immense.

Br,

UEZ

Edited by UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Link to comment
Share on other sites

Updated to v1.08.

  • compression settings will be saved also to ini file now
  • added drag'n'drop feature to add files from same folder only to the GUI
Br,

UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Link to comment
Share on other sites

  • 2 months later...

Thanks for your feedback.

I don't know why you want to display an image in a label control rather than in a picture/button control (1st example: Display images from memory in controls).

Br,

UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Link to comment
Share on other sites

I'm just curious you know :idiot:

I've got progandy's UDF and it worked well with lables but it didn't work in a button.

and now yours is limited to Buttons/Pictures (I guess!)

Is there no other way?

:)

Link to comment
Share on other sites

1st UEZ example, now using label control:

;coded by UEZ 2011
#include <buttonconstants.au3>
#include <guiconstantsex.au3>
#include <gdiplus.au3>
#include <memory.au3>

#include <StaticConstants.au3> ;----> For labels controls show images!

_GDIPlus_Startup()
Global Const $IMAGE_BITMAP = 0
Global Const $STM_SETIMAGE = 0x0172
Global $msg
Global Const $hGUI = GUICreate("Example", 600, 250)
Global Const $idLogo = GUICtrlCreateLabel("", 215, 20, 169, 68)

;----> For labels controls show images!
Local $hCtrlID = GUICtrlGetHandle($idLogo)
; Set SS_BITMAP style to control ID.
$aCtrlStyle = DllCall("user32.dll", "long", "GetWindowLong", "hwnd", $hCtrlID, "int", -16) ; -16 = $GWL_STYLE
DllCall("user32.dll", "long", "SetWindowLong", "hwnd", $hCtrlID, "int", -16, "long", BitOR($aCtrlStyle[0], $SS_BITMAP))
;<----

Global Const $idButton = GUICtrlCreateButton("", 266, 150, 78, 81, $BS_FLAT + $BS_BITMAP)

Global Const $hButton = GUICtrlGetHandle($idButton)

Global Const $Bmp_Logo = Load_BMP_From_Mem(AutoIt_Logo(), True)
_WinAPI_DeleteObject(GUICtrlSendMsg($idLogo, $STM_SETIMAGE, $IMAGE_BITMAP, $Bmp_Logo))
Global Const $Bmp_Button = Load_BMP_From_Mem(Merlin(), True)
_WinAPI_DeleteObject(_SendMessage($hButton, $BM_SETIMAGE, $IMAGE_BITMAP, $Bmp_Button))
_WinAPI_UpdateWindow($hButton)
GUISetState()

While True
$msg = GUIGetMsg()
Switch $msg
Case $idLogo
MsgBox(0, "Information", "The picture has been clicked!")
Case $idButton
MsgBox(0, "Information", "the button has been clicked!")
Case $GUI_EVENT_CLOSE
_WinAPI_DeleteObject($Bmp_Logo)
_WinAPI_DeleteObject($Bmp_Button)
_GDIPlus_Shutdown()
GUIDelete($hGUI)
Exit
EndSwitch
WEnd

;======================================================================================
; Function Name:     Load_BMP_From_Mem
; Description:       Loads an image which is saved as a binary string and converts it to a bitmap or hbitmap
;
; Parameters:        $bImage: the binary string which contains any valid image which is supported by GDI+
; Optional:              $hHBITMAP: if false a bitmap will be created, if true a hbitmap will be created
;
; Remark:                hbitmap format is used generally for GUI internal images, $bitmap is more a GDI+ image format
;                            Don't forget _GDIPlus_Startup() and _GDIPlus_Shutdown()
;
; Requirement(s):    GDIPlus.au3, Memory.au3 and _GDIPlus_BitmapCreateDIBFromBitmap() from WinAPIEx.au3
; Return Value(s): Success: handle to bitmap (GDI+ bitmap format) or hbitmap (WinAPI bitmap format),
;                            Error: 0
; Error codes:           1: $bImage is not a binary string
;                            2: unable to create stream on HGlobal
;                            3: unable to create bitmap from stream
;
; Author(s):             UEZ
; Additional Code: thanks to progandy for the MemGlobalAlloc and tVARIANT lines and
;                                Yashied for _GDIPlus_BitmapCreateDIBFromBitmap() from WinAPIEx.au3
; Version:               v0.97 Build 2012-04-10 Beta
;=======================================================================================
Func Load_BMP_From_Mem($bImage, $hHBITMAP = False)
If Not IsBinary($bImage) Then Return SetError(1, 0, 0)
Local $aResult
Local Const $memBitmap = Binary($bImage) ;load image saved in variable (memory) and convert it to binary
Local Const $len = BinaryLen($memBitmap) ;get length of image
Local Const $hData = _MemGlobalAlloc($len, $GMEM_MOVEABLE) ;allocates movable memory ($GMEM_MOVEABLE = 0x0002)
Local Const $pData = _MemGlobalLock($hData) ;translate the handle into a pointer
Local $tMem = DllStructCreate("byte[" & $len & "]", $pData) ;create struct
DllStructSetData($tMem, 1, $memBitmap) ;fill struct with image data
_MemGlobalUnlock($hData) ;decrements the lock count associated with a memory object that was allocated with GMEM_MOVEABLE
$aResult = DllCall("ole32.dll", "int", "CreateStreamOnHGlobal", "handle", $pData, "int", True, "ptr*", 0) ;Creates a stream object that uses an HGLOBAL memory handle to store the stream contents
If @error Then Return SetError(2, 0, 0)
Local Const $hStream = $aResult[3]
$aResult = DllCall($ghGDIPDll, "uint", "GdipCreateBitmapFromStream", "ptr", $hStream, "int*", 0) ;Creates a Bitmap object based on an IStream COM interface
If @error Then Return SetError(3, 0, 0)
Local Const $hBitmap = $aResult[2]
Local $tVARIANT = DllStructCreate("word vt;word r1;word r2;word r3;ptr data; ptr")
DllCall("oleaut32.dll", "long", "DispCallFunc", "ptr", $hStream, "dword", 8 + 8 * @AutoItX64, _
"dword", 4, "dword", 23, "dword", 0, "ptr", 0, "ptr", 0, "ptr", DllStructGetPtr($tVARIANT)) ;release memory from $hStream to avoid memory leak
$tMem = 0
$tVARIANT = 0
If $hHBITMAP Then
Local Const $hHBmp = _GDIPlus_BitmapCreateDIBFromBitmap($hBitmap)
_GDIPlus_BitmapDispose($hBitmap)
Return $hHBmp
EndIf
Return $hBitmap
EndFunc ;==>Load_BMP_From_Mem

Func _GDIPlus_BitmapCreateDIBFromBitmap($hBitmap)
Local $tBIHDR, $Ret, $tData, $pBits, $hResult = 0
$Ret = DllCall($ghGDIPDll, 'uint', 'GdipGetImageDimension', 'ptr', $hBitmap, 'float*', 0, 'float*', 0)
If (@error) Or ($Ret[0]) Then Return 0
$tData = _GDIPlus_BitmapLockBits($hBitmap, 0, 0, $Ret[2], $Ret[3], $GDIP_ILMREAD, $GDIP_PXF32ARGB)
$pBits = DllStructGetData($tData, 'Scan0')
If Not $pBits Then Return 0
$tBIHDR = DllStructCreate('dword;long;long;ushort;ushort;dword;dword;long;long;dword;dword')
DllStructSetData($tBIHDR, 1, DllStructGetSize($tBIHDR))
DllStructSetData($tBIHDR, 2, $Ret[2])
DllStructSetData($tBIHDR, 3, $Ret[3])
DllStructSetData($tBIHDR, 4, 1)
DllStructSetData($tBIHDR, 5, 32)
DllStructSetData($tBIHDR, 6, 0)
$hResult = DllCall('gdi32.dll', 'ptr', 'CreateDIBSection', 'hwnd', 0, 'ptr', DllStructGetPtr($tBIHDR), 'uint', 0, 'ptr*', 0, 'ptr', 0, 'dword', 0)
If (Not @error) And ($hResult[0]) Then
DllCall('gdi32.dll', 'dword', 'SetBitmapBits', 'ptr', $hResult[0], 'dword', $Ret[2] * $Ret[3] * 4, 'ptr', DllStructGetData($tData, 'Scan0'))
$hResult = $hResult[0]
Else
$hResult = 0
EndIf
_GDIPlus_BitmapUnlockBits($hBitmap, $tData)
Return $hResult
EndFunc ;==>_GDIPlus_BitmapCreateDIBFromBitmap

Func AutoIt_Logo()
Local $AutoIt_Logo
$AutoIt_Logo &= '/z9HSUY4OWGpAEQA9wAAkpKSQEBAampr4eHhzdjjVom2ZJnGw83Yv7+/7e3tOmSN2+Pspb7WmrHHWpTMMzM1eaPIxsbGmb3gqqqq0Nvl5uzxp8LdlJ2mf39/hISE8fHxsLCwuMDJ6Ojo/Pz8o8PiISEltLjHTFhj1dXV9PT0W2h0cXJyRnGaUVxoTEyNAABCNjZ8mJiYoKGhpKSknZ2dzs7Oi5mlW1tbZ5W5ubm5NkdXi7TdZ3aEyMjIAAB7kqzFYGBhpa21Q2WGjY2NmrvbUlJSV4Or2dnZe4iUwcHBKkdkVI7HV3mZeYGL5OTkmaKuAABqAAAkAQE00dHRkrLRcHuFra2tQWyWx9Lcg6zUqbC7tra2AABU5ubmIyN5lLnefKnTYGx4g4yUq8nm3NzcSUlKfazZAABz+vr6ZXF9TYO6m62+h5GbVmNuqMbjQ0lWJzhKiqzNOlJpdJq5cqTTiYmJKiou1N7nJ0FbS32s9vb2ytXg+Pj4AAASh4enS3miERERIzxU6/D0k6Kwu8XPmJi5GBsmUn2m6urqZp3QYYeow8TQmbXSk7bYNFNxGBh8NEthbaLUMzpDRFFdmqez39/fjqO4eXl5eIygncDiiJ60jrDSR2F6o7nOAABgnqm1OF6ENVl9s7OzdpGrW5G+nrrVhbHb1uDprrrEGyQ0q7bBZ2eJgaTCa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1Ljx01PNFlEA7dRUndHVIAAAHe3MLUAEZ1AAA+jwCuSgB4UAYNJuEA6nMNcA4QDTqCDOt/AACokwByKwAdwAcM4+sANxcJ4AQw0SUR3WG5EAA4pddIgtFGIAYA0CAAfs8AIAzayPJUBvPUAADkcQBIWACp4A7dmFUAhHMFMA61UDQxABE6AA0ywAB4K91AMABCyR8dg7kAEAAEDZPrwMUcAABYuQCK7QA7cAcATADdy3QA4ArwANiwANSFAAgzqNpxggA3EA0EevDduxXQ0AQCAJPsACto0AxstwATeARW0A/wANsiAL0PAA3WiABDzwDZ0A0AKTzQI+EL4AILDURifd3SEARA8gALTNAuwAkN8vMAEemg4Av9AFQ9AFZ/AACzywDVbQwy8AwA4sAAAZAAwAARAIWR3d8p0AMplgDWAALgAAwAL4PdnOIAwAy0AEII4ANMAAnwmu4AxuAkAA8NznU9gT/iYAslMNpAAEJoAAAT6Q4Rue3zgAnt8aDgAzLAAAKa7O89LYLS4AIlGdCdUQCAEAIAMmsA4Z4AMANQ4AUM7jPpAAAetgApv83C4AdAXsPOTAUuQAV6AKpPCsQLAAA8AgAGb+yZMA3GiBAORaLuQAXI4pi50JV/AA5aqgCk8KAqQAAAKBoArqfD4Ac66+Ev7mmNIA1HI+5+syRHMAIO4rgC7ojF4AEIp92IxddIoA3eiUXumWfukAmJ7pmr7pnB4AEAA7'
$AutoIt_Logo = _Base64Decode($AutoIt_Logo)
Local $tSource = DllStructCreate('byte[' & BinaryLen($AutoIt_Logo) & ']')
DllStructSetData($tSource, 1, $AutoIt_Logo)
Local $tDecompress
_WinAPI_LZNTDecompress($tSource, $tDecompress)
$tSource = 0
Return Binary(DllStructGetData($tDecompress, 1))
EndFunc ;==>AutoIt_Logo

Func Merlin()
Local $Merlin
$Merlin &= 'R0lGODlhRABHAPcAAP///xgxcRw1fRgtbRw5ghgtaRw1eRw5hsrKyhgxdRw9lhQkYRgxbRQoaRQ1fRg1eRw5ihg1dSBBkhQtZcLCwr6SlhQkWSA9kq6qrsaamr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gDxKAYQOsOHIeZDxjGes13RYAFdzMYQFJkDlGfghyAyoxB7McGQagKMS+mBAmJkM1HQYQQsI3usMZqCFKyNyacCyWAQbznEEM7hAyWSeQJuvoALNwAIKUNBCC6b85hvAgQ2J2MEO5LFkG0/AAipILXNOAQYLxBaRN1hEOxqgygWseQYNaEBQfZCCFHxIBW8otTwYPYAUGGITIIi1rGP9BplB6da4TkhAAAA7'
Return Binary(_Base64Decode($Merlin))
EndFunc ;==>Merlin

Func _WinAPI_LZNTDecompress(ByRef $tInput, ByRef $tOutput, $iBufferSize = 0x800000)
Local $tBuffer, $Ret
$tOutput = 0
$tBuffer = DllStructCreate('byte[' & $iBufferSize & ']')
If @error Then Return SetError(1, 0, 0)
$Ret = DllCall('ntdll.dll', 'uint', 'RtlDecompressBuffer', 'ushort', 0x0002, 'ptr', DllStructGetPtr($tBuffer), 'ulong', $iBufferSize, 'ptr', DllStructGetPtr($tInput), 'ulong', DllStructGetSize($tInput), 'ulong*', 0)
If @error Then Return SetError(2, 0, 0)
If $Ret[0] Then Return SetError(3, $Ret[0], 0)
$tOutput = DllStructCreate('byte[' & $Ret[6] & ']')
If Not _WinAPI_MoveMemory(DllStructGetPtr($tOutput), DllStructGetPtr($tBuffer), $Ret[6]) Then
$tOutput = 0
Return SetError(4, 0, 0)
EndIf
Return $Ret[6]
EndFunc ;==>_WinAPI_LZNTDecompress

Func _WinAPI_MoveMemory($pDestination, $pSource, $iLenght)
DllCall('ntdll.dll', 'none', 'RtlMoveMemory', 'ptr', $pDestination, 'ptr', $pSource, 'ulong_ptr', $iLenght)
If @error Then Return SetError(5, 0, 0)
Return 1
EndFunc ;==>_WinAPI_MoveMemory

Func _Base64Decode($input_string)
Local $struct = DllStructCreate("int")
Local $a_Call = DllCall("Crypt32.dll", "int", "CryptStringToBinary", "str", $input_string, "int", 0, "int", 1, "ptr", 0, "ptr", DllStructGetPtr($struct, 1), "ptr", 0, "ptr", 0)
If @error Or Not $a_Call[0] Then Return SetError(1, 0, "")
Local $a = DllStructCreate("byte[" & DllStructGetData($struct, 1) & "]")
$a_Call = DllCall("Crypt32.dll", "int", "CryptStringToBinary", "str", $input_string, "int", 0, "int", 1, "ptr", DllStructGetPtr($a), "ptr", DllStructGetPtr($struct, 1), "ptr", 0, "ptr", 0)
If @error Or Not $a_Call[0] Then Return SetError(2, 0, "")
Return DllStructGetData($a, 1)
EndFunc ;==>_Base64Decode
It works, but static picture control is better!

Regards,

João Carlos.

Edited by JScript

http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!)

Somewhere Out ThereJames Ingram

somewh10.png

dropbo10.pngDownload Dropbox - Simplify your life!
Your virtual HD wherever you go, anywhere!

Link to comment
Share on other sites

@JScript

It worked! Thanks! :idiot:

@UEZ

This one;)

#include-once
#include <Memory.au3>
#include <GDIPlus.au3>

; #FUNCTION# ====================================================================================================================
; Name...........: _GDIPlus_ImageLoadFromHGlobal
; Description ...: Creates an Image object based on movable HGlobal memory block
; Syntax.........: _GDIPlus_ImageLoadFromHGlobal($hGlobal)
; Parameters ....: $hGlobal - Handle of a movable HGlobal memory block
; Return values .: Success - Pointer to a new Image object
; Failure - 0 and either:
; |@error and @extended are set if DllCall failed:
; | -@error = 1 if could not create IStream
; | -@error = 2 if DLLCall to create image failed
; |$GDIP_STATUS contains a non zero value specifying the error code
; Author ........: ProgAndy
; Modified.......:
; Remarks .......: After you are done with the object, call _GDIPlus_ImageDispose to release the object resources.
; The HGLOBAL will be owned by the image and freed automatically when the image is disposed.
; Related .......: _GDIPlus_ImageLoadFromStream, _GDIPlus_ImageDispose
; Link ..........:
; Example .......:
; ===============================================================================================================================
Func _GDIPlus_ImageLoadFromHGlobal($hGlobal)
Local $aResult = DllCall("ole32.dll", "int", "CreateStreamOnHGlobal", "handle", $hGlobal, "bool", True, "ptr*", 0)
If @error Or $aResult[0] <> 0 Or $aResult[3] = 0 Then Return SetError(1, @error, 0)
Local $hImage = DllCall($ghGDIPDll, "uint", "GdipLoadImageFromStream", "ptr", $aResult[3], "int*", 0)
Local $error = @error
Local $tVARIANT = DllStructCreate("word vt;word r1;word r2;word r3;ptr data; ptr")
Local $aCall = DllCall("oleaut32.dll", "long", "DispCallFunc", "ptr", $aResult[3], "dword", 8 + 8 * @AutoItX64, "dword", 4, "dword", 23, "dword", 0, "ptr", 0, "ptr", 0, "ptr", DllStructGetPtr($tVARIANT))
If $error Then Return SetError(2, $error, 0)
If $hImage[2] = 0 Then Return SetError(3, 0, $hImage[2])
Return $hImage[2]
EndFunc ;==>_GDIPlus_ImageLoadFromHGlobal


; #FUNCTION# ====================================================================================================================
; Name...........: _MemGlobalAllocFromBinary
; Description ...: Greates a movable HGLOBAL memory block from binary data
; Syntax.........: _MemGlobalAllocFromBinary($bBinary)
; Parameters ....: $bBinary - Binary data
; Return values .: Success - Handle of a new movable HGLOBAL
; Failure - 0 and set @error:
; |1 - no data
; |2 - could not allocate memory
; |3 - could not set data to memory
; Author ........: ProgAndy
; Modified.......:
; Remarks .......:
; Related .......: _MemGlobalAlloc, _MemGlobalFree, _MemGlobalLock
; Link ..........:
; Example .......:
; ===============================================================================================================================
Func _MemGlobalAllocFromBinary(Const $bBinary)
Local $iLen = BinaryLen($bBinary)
If $iLen = 0 Then Return SetError(1, 0, 0)
Local $hMem = _MemGlobalAlloc($iLen, $GMEM_MOVEABLE)
If @error Or Not $hMem Then Return SetError(2, 0, 0)
DllStructSetData(DllStructCreate("byte[" & $iLen & "]", _MemGlobalLock($hMem)), 1, $bBinary)
If @error Then
_MemGlobalUnlock($hMem)
_MemGlobalFree($hMem)
Return SetError(3, 0, 0)
EndIf
_MemGlobalUnlock($hMem)
Return $hMem
EndFunc ;==>_MemGlobalAllocFromBinary

; #FUNCTION# ====================================================================================================================
; Name...........: _MemGlobalAllocFromMem
; Description ...: Greates a movable HGLOBAL memory block and copies data from memory
; Syntax.........: _MemGlobalAllocFromMem($pSource, $iLength)
; Parameters ....: $pSource - Pointer to memorybloc to copy from
; $iLength - Length of data to copy
; Return values .: Success - Handle of a new movable HGLOBAL
; Failure - 0 and set @error:
; |1 - invalid $pSource
; |2 - invalid $iLength
; |3 - could not allocate memory
; Author ........: ProgAndy
; Modified.......:
; Remarks .......:
; Related .......: _MemGlobalAlloc, _MemGlobalFree, _MemGlobalLock
; Link ..........:
; Example .......:
; ===============================================================================================================================
Func _MemGlobalAllocFromMem($pSource, $iLength)
If Not $pSource Then Return SetError(1, 0, 0)
If $iLength < 1 Then Return SetError(2, 0, 0)
Local $hMem = _MemGlobalAlloc($iLength, $GMEM_MOVEABLE)
If @error Or Not $hMem Then Return SetError(3, 0, 0)
_MemMoveMemory($pSource, _MemGlobalLock($hMem), $iLength)
_MemGlobalUnlock($hMem)
Return $hMem
EndFunc ;==>_MemGlobalAllocFromMem

; #FUNCTION# ====================================================================================================================
; Name...........: _GUICtrlStatic_SetImage
; Description ...: Sets a HBITMAP to a static control like image or label
; Syntax.........: _GUICtrlStatic_SetImage($iCtrlId, $hBitmap)
; Parameters ....: $iCtrlId - CtrlId or handle of Control in the current process
; $hBitmap - Pointer top Windows HBITMAP
; Return values .: Success - 1
; Failure - 0 and set @error:
; |1 - invalid $pSource
; |1 - invalid $pSource
; Author ........: ProgAndy, Zedna
; Modified.......:
; Remarks .......:
; Related .......:
; Link ..........:
; Example .......:
; ===============================================================================================================================
Func _GUICtrlStatic_SetImage($iCtrlId, $hBitmap)
Local Const $STM_SETIMAGE = 0x0172
Local Const $IMAGE_BITMAP = 0
Local Const $SS_BITMAP = 0xE
Local Const $GWL_STYLE = -16

If IsHWnd($iCtrlId) Then
If WinGetProcess($iCtrlId) <> @AutoItPID Then Return SetError(1,0,0)
Else
$iCtrlId = GUICtrlGetHandle($iCtrlId)
If Not $iCtrlId Then Return SetError(2,0,0)
EndIf
; set SS_BITMAP style to control
Local $oldStyle = DllCall("user32.dll", "long", "GetWindowLong", "hwnd", $iCtrlId, "int", $GWL_STYLE)
If @error Then Return SetError(3, 0, 0)
DllCall("user32.dll", "long", "SetWindowLong", "hwnd", $iCtrlId, "int", $GWL_STYLE, "long", BitOR($oldStyle[0], $SS_BITMAP))
If @error Then Return SetError(4, 0, 0)
Local $oldBmp = DllCall("user32.dll", "handle", "SendMessageW", "hwnd", $iCtrlId, "int", $STM_SETIMAGE, "wparam", $IMAGE_BITMAP, "handle", $hBitmap)
If @error Then Return SetError(5, 0, 0)
If $oldBmp[0] Then _WinAPI_DeleteObject($oldBmp[0])
Return 1
EndFunc

_GDIPlus_Startup()
$s = Binary(FileRead(RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3\AutoIt", "InstallDir") & "\Examples\GUI\Torus.png"))
$hMem = _MemGlobalAllocFromBinary($s)
$hImage = _GDIPlus_ImageLoadFromHGlobal($hMem)
$gui = GUICreate("Just draw the created image", 300, 300)
GUISetState()
$hGRaph = _GDIPlus_GraphicsCreateFromHWND($gui)
_GDIPlus_GraphicsDrawImage($hGRaph, $hImage, 5, 5)
_GDIPlus_GraphicsDispose($hGRaph)


Do
Until GUIGetMsg() = -3

WinSetTitle($gui, "", "Now using _GUICtrlStatic_SetImage")
_WinAPI_RedrawWindow($gui)

$iLabel = GUICtrlCreateLabel("", 0, 0, 193, 184)
$hBitmap = _GDIPlus_BitmapCreateHBITMAPFromBitmap($hImage)
_GDIPlus_ImageDispose($hImage)
_GUICtrlStatic_SetImage($iLabel, $hBitmap)

Do
Until GUIGetMsg() = -3
Link to comment
Share on other sites

@JScript

It worked! Thanks! :idiot:

@UEZ

This one;)

; #FUNCTION# ====================================================================================================================
; Name...........: _GUICtrlStatic_SetImage
; Description ...: Sets a HBITMAP to a static control like image or label
; Syntax.........: _GUICtrlStatic_SetImage($iCtrlId, $hBitmap)
; Parameters ....: $iCtrlId - CtrlId or handle of Control in the current process
; $hBitmap - Pointer top Windows HBITMAP
; Return values .: Success - 1
; Failure - 0 and set @error:
; |1 - invalid $pSource
; |1 - invalid $pSource
; Author ........: ProgAndy, Zedna
; Modified.......:
; Remarks .......:
; Related .......:
; Link ..........:
; Example .......:
; ===============================================================================================================================
Func _GUICtrlStatic_SetImage($iCtrlId, $hBitmap)
Local Const $STM_SETIMAGE = 0x0172
Local Const $IMAGE_BITMAP = 0
Local Const $SS_BITMAP = 0xE
Local Const $GWL_STYLE = -16

If IsHWnd($iCtrlId) Then
If WinGetProcess($iCtrlId) <> @AutoItPID Then Return SetError(1,0,0)
Else
$iCtrlId = GUICtrlGetHandle($iCtrlId)
If Not $iCtrlId Then Return SetError(2,0,0)
EndIf
; set SS_BITMAP style to control
Local $oldStyle = DllCall("user32.dll", "long", "GetWindowLong", "hwnd", $iCtrlId, "int", $GWL_STYLE)
If @error Then Return SetError(3, 0, 0)
DllCall("user32.dll", "long", "SetWindowLong", "hwnd", $iCtrlId, "int", $GWL_STYLE, "long", BitOR($oldStyle[0], $SS_BITMAP))
If @error Then Return SetError(4, 0, 0)
Local $oldBmp = DllCall("user32.dll", "handle", "SendMessageW", "hwnd", $iCtrlId, "int", $STM_SETIMAGE, "wparam", $IMAGE_BITMAP, "handle", $hBitmap)
If @error Then Return SetError(5, 0, 0)
If $oldBmp[0] Then _WinAPI_DeleteObject($oldBmp[0])
Return 1
EndFunc

If you have a closer look to _GUICtrlStatic_SetImage() you will see that it is more or less the same I did except to set it for labels.

Here the shorten example with a label control instead of picture control:

;coded by UEZ 2012
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <GUIConstantsEx.au3>
#include <GDIPlus.au3>
#include <Memory.au3>

_GDIPlus_Startup()
Global Const $IMAGE_BITMAP = 0
Global Const $STM_SETIMAGE = 0x0172
Global $msg
Global Const $hGUI = GUICreate("Test", 600, 250)
Global Const $idLogo = GUICtrlCreateLabel("", 215, 20, 169, 68, $SS_BITMAP)
Global $hBmp, $hBmp_Logo

If @OSBuild < 6000 Then
    $hBmp = Load_BMP_From_Mem(_Logo4_GIF())
    $hBmp_Logo = ConvertBitmap($hBmp)
    _GDIPlus_BitmapDispose($hBmp)
Else
    $hBmp_Logo = Load_BMP_From_Mem(_Logo4_GIF(), True)
EndIf
_WinAPI_DeleteObject(GUICtrlSendMsg($idLogo, $STM_SETIMAGE, $IMAGE_BITMAP, $hBmp_Logo))
GUISetState()


While True
    Switch GUIGetMsg()
        Case $idLogo
            MsgBox(0, "Information", "Label was clicked!")
        Case $GUI_EVENT_CLOSE
            _WinAPI_DeleteObject($hBmp_Logo)
            GUIDelete($hGUI)
            _GDIPlus_Shutdown()
            Exit
    EndSwitch
WEnd

Func ConvertBitmap($hBitmap)
    Local $iButtonColor = _WinAPI_GetSysColor($COLOR_BTNFACE)
    $iButtonColor = 0x10000 * BitAND($iButtonColor, 0xFF) + BitAND($iButtonColor, 0x00FF00) + BitShift($iButtonColor, 16)
    Local $iWidth = _GDIPlus_ImageGetWidth($hBitmap), $iHeight = _GDIPlus_ImageGetHeight($hBitmap)
    Local $aResult = DllCall($ghGDIPDll, "uint", "GdipCreateBitmapFromScan0", "int", $iWidth, "int", $iHeight, "int", 0, "int", 0x0026200A, "ptr", 0, "int*", 0)
    Local $hBitmap_New = $aResult[6]
    Local $hCtx_new = _GDIPlus_ImageGetGraphicsContext($hBitmap_New)
    Local $hBrush = _GDIPlus_BrushCreateSolid(0xFF000000 + $iButtonColor)
    _GDIPlus_GraphicsFillRect($hCtx_new, 0, 0, $iWidth, $iHeight, $hBrush)
    _GDIPlus_GraphicsDrawImageRect($hCtx_new, $hBitmap, 0, 0, $iWidth, $iHeight)
    Local $hHBitmap = _GDIPlus_BitmapCreateHBITMAPFromBitmap($hBitmap_New)
    _GDIPlus_BrushDispose($hBrush)
    _GDIPlus_BitmapDispose($hBitmap_New)
    _GDIPlus_GraphicsDispose($hCtx_new)
    Return $hHBitmap
EndFunc

;======================================================================================
; Function Name:        Load_BMP_From_Mem
; Description:            Loads an image which is saved as a binary string and converts it to a bitmap or hbitmap
;
; Parameters:            $bImage:        the binary string which contains any valid image which is supported by GDI+
; Optional:                  $hHBITMAP:        if false a bitmap will be created, if true a hbitmap will be created
;
; Remark:                    hbitmap format is used generally for GUI internal images, $bitmap is more a GDI+ image format
;
; Requirement(s):        GDIPlus.au3, Memory.au3 and _GDIPlus_BitmapCreateDIBFromBitmap() from WinAPIEx.au3
; Return Value(s):    Success: handle to bitmap or hbitmap, Error: 0
; Error codes:            1: $bImage is not a binary string
;                                2: unable to create stream on HGlobal
;                                3: unable to create bitmap from stream
;
; Author(s):                UEZ
; Additional Code:    thanks to progandy for the MemGlobalAlloc and tVARIANT lines
; Version:                    v0.96 Build 2011-31-12 Beta
;=======================================================================================
Func Load_BMP_From_Mem($bImage, $hHBITMAP = False)
    If Not IsBinary($bImage) Then Return SetError(1, 0, 0)
    Local $declared = True
    If Not $ghGDIPDll Then
        _GDIPlus_Startup()
        $declared = False
    EndIf
    Local $aResult
    Local Const $memBitmap = Binary($bImage) ;load image  saved in variable (memory) and convert it to binary
    Local Const $len = BinaryLen($memBitmap) ;get length of image
    Local Const $hData = _MemGlobalAlloc($len, $GMEM_MOVEABLE) ;allocates movable memory  ($GMEM_MOVEABLE = 0x0002)
    Local Const $pData = _MemGlobalLock($hData) ;translate the handle into a pointer
    Local $tMem = DllStructCreate("byte[" & $len & "]", $pData) ;create struct
    DllStructSetData($tMem, 1, $memBitmap) ;fill struct with image data
    _MemGlobalUnlock($hData) ;decrements the lock count  associated with a memory object that was allocated with GMEM_MOVEABLE
    $aResult = DllCall("ole32.dll", "int", "CreateStreamOnHGlobal", "handle", $pData, "int", True, "ptr*", 0) ;Creates a stream object that uses an HGLOBAL memory handle to store the stream contents
    If @error Then SetError(2, 0, 0)
    Local Const $hStream = $aResult[3]
    $aResult = DllCall($ghGDIPDll, "uint", "GdipCreateBitmapFromStream", "ptr", $hStream, "int*", 0) ;Creates a Bitmap object based on an IStream COM interface
    If @error Then SetError(3, 0, 0)
    Local Const $hBitmap = $aResult[2]
    Local $tVARIANT = DllStructCreate("word vt;word r1;word r2;word r3;ptr data; ptr")
    DllCall("oleaut32.dll", "long", "DispCallFunc", "ptr", $hStream, "dword", 8 + 8 * @AutoItX64, _
                                           "dword", 4, "dword", 23, "dword", 0, "ptr", 0, "ptr", 0, "ptr", DllStructGetPtr($tVARIANT)) ;release memory from $hStream to avoid memory leak
    $tMem = 0
    $tVARIANT = 0
    If $hHBITMAP Then
        Local Const $hHBmp = _GDIPlus_BitmapCreateDIBFromBitmap($hBitmap)
        _GDIPlus_BitmapDispose($hBitmap)
        If Not $declared Then _GDIPlus_Shutdown()
        Return $hHBmp
    EndIf
    If Not $declared Then _GDIPlus_Shutdown()
    Return $hBitmap
EndFunc   ;==>Load_BMP_From_Mem

Func _GDIPlus_BitmapCreateDIBFromBitmap($hBitmap)
    Local $tBIHDR, $Ret, $tData, $pBits, $hResult = 0
    $Ret = DllCall($ghGDIPDll, 'uint', 'GdipGetImageDimension', 'ptr', $hBitmap, 'float*', 0, 'float*', 0)
    If (@error) Or ($Ret[0]) Then Return 0
    $tData = _GDIPlus_BitmapLockBits($hBitmap, 0, 0, $Ret[2], $Ret[3], $GDIP_ILMREAD, $GDIP_PXF32ARGB)
    $pBits = DllStructGetData($tData, 'Scan0')
    If Not $pBits Then Return 0
    $tBIHDR = DllStructCreate('dword;long;long;ushort;ushort;dword;dword;long;long;dword;dword')
    DllStructSetData($tBIHDR, 1, DllStructGetSize($tBIHDR))
    DllStructSetData($tBIHDR, 2, $Ret[2])
    DllStructSetData($tBIHDR, 3, $Ret[3])
    DllStructSetData($tBIHDR, 4, 1)
    DllStructSetData($tBIHDR, 5, 32)
    DllStructSetData($tBIHDR, 6, 0)
    $hResult = DllCall('gdi32.dll', 'ptr', 'CreateDIBSection', 'hwnd', 0, 'ptr', DllStructGetPtr($tBIHDR), 'uint', 0, 'ptr*', 0, 'ptr', 0, 'dword', 0)
    If (Not @error) And ($hResult[0]) Then
        DllCall('gdi32.dll', 'dword', 'SetBitmapBits', 'ptr', $hResult[0], 'dword', $Ret[2] * $Ret[3] * 4, 'ptr', DllStructGetData($tData, 'Scan0'))
        $hResult = $hResult[0]
    Else
        $hResult = 0
    EndIf
    _GDIPlus_BitmapUnlockBits($hBitmap, $tData)
    Return $hResult
EndFunc   ;==>_GDIPlus_BitmapCreateDIBFromBitmap

Func _Logo4_GIF($bSaveBinary = False)
    Local $Logo4_GIF
    $Logo4_GIF &= 'R0lGODlhqQBEAPcAAJKSkkBAQGpqa+Hh4c3Y41aJtmSZxsPN2L+/v+3t7Tpkjdvj7KW+1pqxx1qUzDMzNXmjyMbGxpm94KqqqtDb5ebs8afC3ZSdpn9/f4SEhPHx8bCwsLjAyejo6Pz8/KPD4iEhJbS4x0xYY9XV1fT09FtodHFyckZxmlFcaExMjQAAQjY2fJiYmKChoaSkpJ2dnc7OzouZpVtbW2eVubm5uTZHV4u03Wd2hMjIyAAAe5KsxWBgYaWttUNlho2NjZq721JSUleDq9nZ2XuIlMHBwSpHZFSOx1d5mXmBi+Tk5JmirgAAagAAJAEBNNHR0ZKy0XB7ha2trUFslsfS3IOs1Kmwu7a2tgAAVObm5iMjeZS53nyp02BseIOMlKvJ5tzc3ElJSn2s2QAAc/r6+mVxfU2DuputvoeRm1ZjbqjG40NJVic4SoqszTpSaXSauXKk04mJiSoqLtTe5ydBW0t9rPb29srV4Pj4+AAAEoeHp0t5ohERESM8VOvw9JOisLvFz5iYuRgbJlJ9purq6mad0GGHqMPE0Jm10pO22DRTcRgYfDRLYW2i1DM6Q0RRXZqns9/f346juHl5eXiMoJ3A4oietI6w0kdheqO5zgAAYJ6ptThehDVZfbOzs3aRq1uRvp661YWx29bg6a66xBskNKu2wWdniYGkwmuSsAcHBxAQMX+GjZCXn9DS20BceDxefnKexEZ5rD1adR80SW2gzBwcabHM6FBxkYWqzZ+2y0N0ojNATeDn7llZhHN1dpWZoWZnaaG0xrCztSQkVi9RcwsLfXp6pyQwOzFUdw0NdpOnubu7vHB5gUh9saenp4GnyT1Wbq7K5wkJZI6owXmm0AwMThQURU+Dr/7+/u7z9vD097G2ure3t6C/3ampw8TExBAZInqhv6GnrGKPs01siUNDdEVFf8vLyy5Na6GlqKurq3x8fZqam1CJwePp7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AMmsA4Z4AM1DgBQzuM+kAHrYAKb/NwudAXsPOTAUuRXoAqk8KxAsAPAIABm/smT3GiBAORaLuRcjimLnQlX8OWqoApPCgKkAAKBoArqfD5zrr4S/uaY0tRyPufrMkRzIO4rgC7ojF4Qin3YjF10it3olF7pln7pmJ7pmr7pnB4QADs='
    Local $bString = Binary(_Base64Decode($Logo4_GIF))
    If $bSaveBinary Then
        Local $hFile = FileOpen(@ScriptDir & "logo4.gif", 18)
        FileWrite($hFile, $bString)
        FileClose($hFile)
    EndIf
    Return  $bString
EndFunc   ;==>_Logo4_GIF

Func _Base64Decode($sB64String)
    Local $struct = DllStructCreate("int")
    Local $a_Call = DllCall("Crypt32.dll", "int", "CryptStringToBinary", "str", $sB64String, "int", 0, "int", 1, "ptr", 0, "ptr", DllStructGetPtr($struct, 1), "ptr", 0, "ptr", 0)
    If @error Or Not $a_Call[0] Then Return SetError(1, 0, "")
    Local $a = DllStructCreate("byte[" & DllStructGetData($struct, 1) & "]")
    $a_Call = DllCall("Crypt32.dll", "int", "CryptStringToBinary", "str", $sB64String, "int", 0, "int", 1, "ptr", DllStructGetPtr($a), "ptr", DllStructGetPtr($struct, 1), "ptr", 0, "ptr", 0)
    If @error Or Not $a_Call[0] Then Return SetError(2, 0, "")
    Return DllStructGetData($a, 1)
EndFunc   ;==>_Base64Decode

Br,

UEZ

Edited by UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Link to comment
Share on other sites

  • 4 weeks later...

Hi UEZ, is it possible to embed an image in a ToolBar control, I use the following but it doesn´t work:

; Toolbar
; Create Toolbar
$hToolBar = _GUICtrlToolbar_Create($hGui, $TBSTYLE_FLAT + $TBSTYLE_LIST)
Local $iTBstyle = _GUICtrlToolbar_GetExtendedStyle($hToolBar)
_GUICtrlToolbar_SetExtendedStyle($hToolBar, BitOR($iTBstyle, $TBSTYLE_EX_DRAWDDARROWS))
; Image list
_GUICtrlToolbar_SetImageList($hToolBar, $hImlLarge)
; Add buttons to the Toolbar
Global $hMemImage = Load_BMP_From_Mem(Binary(_Base64Decode(_backico())))
;_GUICtrlToolbar_AddButton($hToolBar, $idBackButton,_GetIcon_GetIconIndex(@ScriptDir & "resback.ico"), 0, BitOR($BTNS_AUTOSIZE, $BTNS_DROPDOWN), $TBSTATE_INDETERMINATE)
_GUICtrlToolbar_AddButton($hToolBar, $idBackButton,$hMemImage, 0, BitOR($BTNS_AUTOSIZE, $BTNS_DROPDOWN), $TBSTATE_INDETERMINATE)
_GUICtrlToolbar_SetButtonText($hToolBar, $idBackButton, "Back")
Link to comment
Share on other sites

Something like that?

 

#include <GuiReBar.au3>
#include <Constants.au3>
#include <GuiToolbar.au3>
#include <GDIPlus.au3>

_GDIPlus_Startup()

Enum $idSave = 1500, $idCopy, $idSend, $idUndo, $idPen, $idHighlighter, $idRectangle, $idEllipse, $idArrow, $idColor, $idText, $idText_Conf, $idFX, $idPen_Size
$TB_Style = BitOR($TBSTYLE_FLAT, $TBSTYLE_TRANSPARENT, $CCS_NORESIZE, $CCS_NOPARENTALIGN)

$hGUI = GUICreate("Toolbar with icons from memory", 740, 200)
$hHBITMAP_Icons = _GDIPlus_BitmapCreateFromMemory(_ImageEditor_ToolbarIcons(), True)

$hToolbar = _GUICtrlToolbar_Create($hGUI, $TB_Style)
_GUICtrlToolbar_SetBitmapSize($hToolbar, 24, 24)
_GUICtrlToolbar_AddBitmap($hToolbar, 1, 0, $hHBITMAP_Icons)
$hReBar = _GUICtrlRebar_Create($hGUI, BitOR($CCS_TOP, $RBS_VARHEIGHT, $RBS_AUTOSIZE, $RBS_BANDBORDERS))

Global $aStrings[14]
$aStrings[0] = _GUICtrlToolbar_AddString($hToolbar, "  &Save  ")
$aStrings[1] = _GUICtrlToolbar_AddString($hToolbar, "  &Copy  ")
$aStrings[2] = _GUICtrlToolbar_AddString($hToolbar, "  S&end  ")
$aStrings[3] = _GUICtrlToolbar_AddString($hToolbar, "&Undo")
$aStrings[4] = _GUICtrlToolbar_AddString($hToolbar, "  &Pen  ")
$aStrings[5] = _GUICtrlToolbar_AddString($hToolbar, "Pen S&ize")
$aStrings[6] = _GUICtrlToolbar_AddString($hToolbar, "&Highlighter")
$aStrings[7] = _GUICtrlToolbar_AddString($hToolbar, "&Rectangle")
$aStrings[8] = _GUICtrlToolbar_AddString($hToolbar, "&Ellipse")
$aStrings[9] = _GUICtrlToolbar_AddString($hToolbar, "&Arrow")
$aStrings[10] = _GUICtrlToolbar_AddString($hToolbar, "C&olor")
$aStrings[11] = _GUICtrlToolbar_AddString($hToolbar, "  &Text  ")
$aStrings[12] = _GUICtrlToolbar_AddString($hToolbar, "Confi&g")
$aStrings[13] = _GUICtrlToolbar_AddString($hToolbar, "F&X")

_GUICtrlToolbar_AddButton($hToolbar, $idSave, 2, $aStrings[0], $BTNS_AUTOSIZE)
_GUICtrlToolbar_AddButtonSep($hToolbar)

_GUICtrlToolbar_AddButton($hToolbar, $idCopy, 3, $aStrings[1], $BTNS_AUTOSIZE)

_GUICtrlToolbar_AddButton($hToolbar, $idSend, 4, $aStrings[2], $BTNS_AUTOSIZE)
_GUICtrlToolbar_AddButtonSep($hToolbar)

_GUICtrlToolbar_AddButton($hToolbar, $idUndo, 0, $aStrings[3], $BTNS_AUTOSIZE)
_GUICtrlToolbar_AddButtonSep($hToolbar)

_GUICtrlToolbar_AddButton($hToolbar, $idHighlighter, 6, $aStrings[6], $BTNS_AUTOSIZE)
_GUICtrlToolbar_AddButtonSep($hToolbar)

_GUICtrlToolbar_AddButton($hToolbar, $idPen, 5, $aStrings[4], $BTNS_AUTOSIZE)
_GUICtrlToolbar_AddButton($hToolbar, $idPen_Size, 8, $aStrings[5], $BTNS_DROPDOWN + $BTNS_WHOLEDROPDOWN + $BTNS_AUTOSIZE)
_GUICtrlToolbar_AddButton($hToolbar, $idRectangle, 9, $aStrings[7], $BTNS_AUTOSIZE)
_GUICtrlToolbar_AddButton($hToolbar, $idEllipse, 10, $aStrings[8], $BTNS_AUTOSIZE)
_GUICtrlToolbar_AddButton($hToolbar, $idArrow, 11, $aStrings[9], $BTNS_AUTOSIZE)
_GUICtrlToolbar_AddButton($hToolbar, $idColor, 12, $aStrings[10], $BTNS_AUTOSIZE)
_GUICtrlToolbar_AddButtonSep($hToolbar)

_GUICtrlToolbar_AddButton($hToolbar, $idText, 13, $aStrings[11], $BTNS_AUTOSIZE)
_GUICtrlToolbar_AddButton($hToolbar, $idText_Conf, 14, $aStrings[12], $BTNS_AUTOSIZE)
_GUICtrlToolbar_AddButtonSep($hToolbar)

_GUICtrlToolbar_AddButton($hToolbar, $idFX, 15, $aStrings[13], $BTNS_DROPDOWN + $BTNS_WHOLEDROPDOWN + $BTNS_AUTOSIZE)
_GUICtrlToolbar_AddButtonSep($hToolbar)
GUISetState()
_GUICtrlRebar_AddToolBarBand($hReBar, $hToolbar, "", 0)

Do
Until GUIGetMsg() = -3

_WinAPI_DeleteObject($hHBITMAP_Icons)
_GDIPlus_Shutdown()
GUIDelete()
Exit

Func _ImageEditor_ToolbarIcons()
    Local $ImageEditor_Icons
    $ImageEditor_Icons &= 'iVBORw0KGgoAAAANSUhEUgAAAYAAAAAYCAYAAADzhSolAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEgAACxIB0t1+/AAAAAd0SU1FB9wEEg05IeyNQZcAACAASURBVHja7L13mFXV3QW89mm3l5k7vQHDUIdhQASkKzZij4ldo1GsMWpir1HxRUNilESNiorBiDV2FBURASnC0PsAU5h+Z24//Zy9vz/uzDhDB/P6ft/zfPt5jpc7nrPPvfucs9bvt35r70twFK157xyHKPrLeMGbT0BgGbEWaiR25wy4ScNPaNGKikyN0sGEkDPBcUMZY06T0j0GpfsSjK27raFh5fJUygBAD9XHri/amS0TrNmwApXTBnb/nTGAUQpKGahNYXe+s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qmzcx7Dh00wlSKQBJp00748mc59ODwf30PE8Uu/btKUxFw8tkmbplWXZx0841YgmXHQgQORy23Yyx'
    $ImageEditor_Icons &= 'PCKxXEUzXIpjXx+XAAACIklEQVSq56iutKrl6JaAkTRZJskyZiLDrIiRVq4MDSQvDgZM4QS97FwUeI5HLBtNpNB9vhWmoSMUjaGt6zgC/QIWoyCQqCLLnjy3+wWXpnklSdImDCNjMBYaHYuOBKOx9IRuiHhqAtF4EvFUCha3H8iQZ45PhJSUFL9W5ivbYZrmP8lU8qxLMeOBoejVDLOMuXJp3ZORU0XTqjfskArL1sgFvhpBJFUYCdjxIOOjnXGz79pBwc0fnOokQrKnF4kDKZtD2jEhRGjS/hsaGop27tz5EQD3w5iBF2JjhJDxpqamxmcuAKzc/Km/lxf9WOR/pZRfavm17+SRXZxbw5iBBsJBqXMtecyvEkSWfqL7KXVdApAPwAvAjf+YPCXHGJjjPGOOAS1Y97eiomJNaWnpIb/fv7a5uXnsf77z5EWdlmzbRvcLQTuOHWOHQ6EpcQ4xQ7YvHuLwn5rX3HPoQE4mmfAKm7slShUhiJYZTypWT49EAgHI6TRXBbgmUdOtuUxPbj7z5HmYrCjMtIXFLG5luGWnGeMDsbD93fV2Hjb0qT49DwCzbGtMpNB19jdwMyt52tMXwJ/XbiB/kRe+4sVksbdAohKRAAlC2ETTNFAqwTK5CIYjfDgUFrFYVCSTKYzFxtHZN4j+keBUIchs31+mlHLb5gsdp3ucMpGoXFpZA6q+BJsXTpsTEOmIwROhUxCiez72PT4+jlgsRp/Ety8uLub/AhIKBb23x+IGAAAAAElFTkSuQmCC'
    Return Binary(_Base64Decode($ImageEditor_Icons))
EndFunc   ;==>_ImageEditor_ToolbarIcons

Func _Base64Decode($input_string)
    Local $struct = DllStructCreate("int")
    Local $a_Call = DllCall("Crypt32.dll", "int", "CryptStringToBinary", "str", $input_string, "int", 0, "int", 1, "ptr", 0, "ptr", DllStructGetPtr($struct, 1), "ptr", 0, "ptr", 0)
    If @error Or Not $a_Call[0] Then Return SetError(1, 0, "")
    Local $a = DllStructCreate("byte[" & DllStructGetData($struct, 1) & "]")
    $a_Call = DllCall("Crypt32.dll", "int", "CryptStringToBinary", "str", $input_string, "int", 0, "int", 1, "ptr", DllStructGetPtr($a), "ptr", DllStructGetPtr($struct, 1), "ptr", 0, "ptr", 0)
    If @error Or Not $a_Call[0] Then Return SetError(2, 0, "")
    Return DllStructGetData($a, 1)
EndFunc   ;==>_Base64Decode

Br,

UEZ

Edited by UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...