#1720 closed Feature Request (Rejected)
adding functionality to GUICtrlSetImage
| Reported by: | ynbIpb | Owned by: | |
|---|---|---|---|
| Milestone: | Component: | AutoIt | |
| Version: | Severity: | None | |
| Keywords: | GUICtrlSetImage | Cc: |
Description
Hello!
I beg you to realize the possibility of using binary data as a function GUICtrlSetImage.
Example:
Now the function uses the image file:
GUICtrlSetImage (controlID, @ ScriptDir & "\ image.jpg")
I want this:
$ HImageFile = FileOpen (@ ScriptDir & "\ image.jpg", 16); binary mode
$ BImageData = FileRead ($ hImageFile); binary data
GUICtrlSetImage (controlID, $ bImageData)
Thank you.
Attachments (0)
Change History (4)
comment:1 by , on Jul 18, 2010 at 10:00:02 AM
| Version: | 3.3.6.1 |
|---|
comment:2 by , on Jul 19, 2010 at 7:10:04 AM
I don't really understand the request.
the data needed to set an image must be interpreted.
.jpg .bmp have a different information in it. That the reason why the file data cannot be transmitted as such.
Can you give a real example where you request will be helpful?
comment:3 by , on Jul 19, 2010 at 4:20:46 PM
Example:
I have a lot of pictures. I thought their format for storing all images in one file. I read in binary mode only a fragment of the file (a picture) and installed on the GUI
Or I want to save the picture in binary form in the script code.
I heard that if the problem can be implemented in UDF, then my request is not granted.
comment:4 by , on Jul 20, 2010 at 7:16:44 AM
| Resolution: | → Rejected |
|---|---|
| Status: | new → closed |
I don't know how and from which images format you are creating such images storing but if you know the way I assume an UDF can be easily written.
Such discussion must go to http://www.autoitscript.com/forum/ before ticket submission

Automatic ticket cleanup.