Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Extract Icons from Imagelist

Status
Not open for further replies.

SqueakinSweep

Programmer
Jun 20, 2002
945
GB
I have a Fox Imagelist, and I have lost the original icons. How do I get them out and save them back as Icons or Bitmaps. I am certain I did this before using .NET, but my mind is at a complete blank as to how I did it.

Any pointers greatly appreciated


Sweep
...if it works dont mess with it
 
Ramani

Can you advise how I use this to get at all the images in an imagelist. I tried pointing this at the built exe but to no avail.


Sweep
...if it works dont mess with it
 
Is there a way in Fox to iterate through the images in an imagelist and save each image as a bitmap. The reason I want to do this, is that I have lost the original bitmap/icons files, and I am moving a Fox 6.0 app across to VB.NET/Sql Server. I just want the images in the list, to be able to add them to my VB.NET imagelist.

Icon Extractor does not seem to work, my GUI forms are in a Fox class library. Pointing to the libarary VCX, or VCT, shows no icons, and pointing at the EXE simply shows the desktop Icon.






Sweep
...if it works dont mess with it
 
Mike.

Yes..thats what I meant. Sorry it was unclear.


Sweep
...if it works dont mess with it
 
Sweep,

Is there a way in Fox to iterate through the images in an imagelist and save each image as a bitmap.

This is very difficult. As a rough guide, you can do something like this:

FOR EACH oPict IN THISFORM.MyImageList.ListImages
* oPict contains an object reference to an image
oImage = oPict.Picture
* oImage contains the actual image
*** other code can go here
ENDFOR

The problem is that, once you have got the reference to the image (in oImage), you can manipulate it in various ways, but there is no obvious way of saving it to a new file.

Maybe you need to take a different approach. How about creating a form that displays each icon (for example, via a listview), and then using a screen capture program to capture it.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

My sites:
Visual FoxPro (www.ml-consult.demon.co.uk)
Crystal Reports (www.ml-crystal.com)
 
Thanks Mike
I thought there might be some way of manipulating the image and saving it, but I guess not. It is possible to manipulate an ImageList thus so in .Net, so I kinda hoped Fox would be able to do the same.

I'll keep on trying to find a solution, as the screen capture method is far from ideal.


Sweep
...if it works dont mess with it
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top