dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: COnvert BMP to Ico

  1. #1
    Join Date
    Feb 2010
    Posts
    24

    COnvert BMP to Ico

    i want convert 1 file bmp to .ico,i think it must use GDI+ but i dont known use it,can you help me ?

  2. #2
    Join Date
    Nov 2007
    Posts
    613

    Re: COnvert BMP to Ico

    You don't need GDI+. What you need is the ICO file format. Create a data structure in the memory following the ICO file format specifications and save the data on the disk using the .ico file extension.

    The ICO file format is here:
    http://www.wotsit.org/list.asp?search=ico

  3. #3
    Join Date
    Apr 1999
    Posts
    3,585

    Re: COnvert BMP to Ico

    You should be able to use one of the Create Icon variants. In particular, take a look at CreateIconFromResource ().
    Gort...Klaatu, Barada Nikto!

  4. #4
    Join Date
    Nov 2007
    Posts
    613

    Re: COnvert BMP to Ico

    Quote Originally Posted by Mike Harnad View Post
    You should be able to use one of the Create Icon variants. In particular, take a look at CreateIconFromResource ().
    The icon Create functions allow you to get a HICON handle, not to create ICO files.

Posting Permissions

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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)