Results 1 to 3 of 3

Thread: Saving TImage as a valid Icon.

  1. #1
    jim
    Guest

    Saving TImage as a valid Icon.

    How can i make it so when i press button1, the timage (32,32 pix) is saved as a valid icon file. ive tried saving them, and when i go to use it, it says 'Not a Valid Icon File', please help.
    thank you.

  2. #2
    Legendary Member cairnswm's Avatar
    Join Date
    Nov 2002
    Location
    Randburg, South Africa
    Posts
    1,537

    Saving TImage as a valid Icon.

    Do a search for TjvIcon. Its the only Delphi source I've come accross for creating Icon files from images.
    William Cairns
    My Games: http://www.cairnsgames.co.za (Currently very inactive)
    MyOnline Games: http://TheGameDeveloper.co.za (Currently very inactive)

  3. #3

    Saving TImage as a valid Icon.

    If you're prepared to put the extra work in some .Ico file format documentation is available from Wotsit.Org
    http://www.wotsit.org/download.asp?f=icons
    It will mean you gotta write your own routines to convert from bitmap to icon
    but the docs do contain some C source code but it shouldn't be too difficult to convert, it looks pretty basic. Hope this helps.
    Isometric game development blog http://isoenginedev.blogspot.com/

Bookmarks

Posting Permissions

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