Results 1 to 9 of 9

Thread: bitmaps inside dll's [RESOLVED]

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489

    bitmaps inside dll's [RESOLVED]

    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?
    Attached Images Attached Images  
    Last edited by Andy; Mar 25th, 2004 at 10:00 PM.

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Is it this ?
    Attached Files Attached Files

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489
    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.

  4. #4
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Yes , it's even better but needs more code . If you want to get any icon from source dll and you know the index of that icon , then this post is your guide :http://www.vbforums.com/showthread.p...ght=ugly+icons

  5. #5
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    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.
    \m/\m/

  6. #6
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    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.
    doen't make , to me...

  7. #7

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489
    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.

  8. #8
    Fanatic Member pax's Avatar
    Join Date
    Mar 2001
    Location
    Denmark
    Posts
    840
    Hi.

    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...

    ...Currently using VS2013...

  9. #9

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489
    cool. No, I didn't make the images. I just scoured the dll's in the system32 folder and found some good, useful ones.

    I'll give these suggestions a try guys, thanks!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width