Visual C# Developer Center > Visual C# Forums > Visual C# General > Extracting Icons in a single File
Ask a questionAsk a question
 

General DiscussionExtracting Icons in a single File

  • Friday, November 06, 2009 12:02 PMrobertomadarang Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi,

    I have a single image file with 483x304 resolution with 160 icons in it. Is there a way to get each Icon without having to remove each icons on that single file? I was thinking like a sprite animation but don't really know how to start. I'm using C#.

    Thanks in advance.

    Regards,

    Roberto

All Replies

  • Tuesday, November 10, 2009 8:41 AMHarry ZhuMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi,

    What's the type of the image file?
    Can we read the image into a bitmap object and get all the icons using GetPixel method?

    Harry
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
  • Friday, November 13, 2009 1:47 AMHarry ZhuMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    We are changing the issue type to “General Discussion” because you have not followed up with the necessary information. If you have more time to look at the issue and provide more information, please feel free to change the issue type back to “Question” by opening the Options list at the top of the post  window, and changing the type. If the issue is resolved, we will appreciate it if you can share the solution so that the answer can be found and used by other community members having similar questions.


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.