Sign in to follow this  
Followers 0
dushkin

Get images from controls

6 posts in this topic

Hi All.

Is there a way to retrieve an image from a control?

From a button?

From a list control first column?

Thanks!

Share this post


Link to post
Share on other sites



I've never tried these, but in the help file there are:

_GUICtrlButton_GetImage() ;retrieves handle to the image associated with the button
_GUICtrlListView_GetBkImage() ;retrieves background image in the control
_GUICtrlListView_GetImageList() ;retrieves the handle to an image list used for drawing listview items
_GUICtrlListView_GetItemImage() ;retrieves the index of the item's icon

Good luck!


Instant Lockerz Invite - www.instantlockerzinvite.co.uk

Share this post


Link to post
Share on other sites

I've never tried these, but in the help file there are:

_GUICtrlButton_GetImage() ;retrieves handle to the image associated with the button
_GUICtrlListView_GetBkImage() ;retrieves background image in the control
_GUICtrlListView_GetImageList() ;retrieves the handle to an image list used for drawing listview items
_GUICtrlListView_GetItemImage() ;retrieves the index of the item's icon

Good luck!

Thanks, I will try!

Share this post


Link to post
Share on other sites

I've never tried these, but in the help file there are:

_GUICtrlButton_GetImage() ;retrieves handle to the image associated with the button
_GUICtrlListView_GetBkImage() ;retrieves background image in the control
_GUICtrlListView_GetImageList() ;retrieves the handle to an image list used for drawing listview items
_GUICtrlListView_GetItemImage() ;retrieves the index of the item's icon

Good luck!

Well as much I saw, those functions return handles to the images. Am I correct?

My final purpose is to get an image from a button or from a list control and to verify it (compare it) to a given image. In my case - an icon.

I didn't find out how to continue after using _GUICtrlListView_GetItemImage (for example) and getting the handle of, lets say, item 0 image. How can I compare it to my aside image?

(let's assume I have an image compare utility)

Thanks!

Share this post


Link to post
Share on other sites

@dushkin

I am not sure this is what you are looking for

http://www.autoitscript.com/forum/index.php?showtopic=78757

rgds

ptrex

Thanks ptrex.

I also think this is not related.. Maybe you can read the reply I posted for furrycow and see if this makes things clearer.

Thanks again!

Share this post


Link to post
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
Sign in to follow this  
Followers 0