I discovered you can drag and drop a dll into the vs workspace and then, if it contains any, view the individual bitmaps inside of it. There are a few that are simply one long picture that represent a different 'state' of that picture; example
when you arent hovered over the logout button in xp, it's one shade, when you hover over it, it changes shades and when you press it, it turns yet another shade.
all three of those elements are actually one entire picture but xp apparently knows to look at a certain coordinate for different events.
What I would like to find out is how to do this? how do you tell your app to use it and when the events fire, how do you call the coordinates?
that's exactly what I mean. But instead of using 3 seperate pics, I'm sure there's a way to call the bitmap that's inside the dll and leave it in there cause there are some dll's that have StringInfo in there such as tip of the day stuff yadda yadda.
I think that what the guy wants is not how to extract the icons from dll files but to take a picture with several pictures and then split them and use each one of them.
I never did it but try playing with the Bitmap object. I'm 100% sure there is some function that will let you do it.
Originally posted by PT Exorcist I think that what the guy wants is not how to extract the icons from dll files but to take a picture with several pictures and then split them and use each one of them.
I never did it but try playing with the Bitmap object. I'm 100% sure there is some function that will let you do it.
well, instead of needing to have three seperate pics(for example), you can just have one dll and call a pic's index and it's coordinates (if it's part of a group) and use different pieces of that one big pic for different events.
I'll try playing with that object and see what happens.
Add an image file to the solution.
Set it to Embedded Resource.
Then you can acces the image thru the assembly.Getmanifest etc.
That will retrieve the entire image.
Then just draw the part of the image needed for a specific situation.
Of course, you need to know the coordinates of the segments in the picture beforehand, but if you made the image, you should allready know this.
I wish I could think of something witty to put in my sig...