Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. include a gif file as a resource file

include a gif file as a resource file

Scheduled Pinned Locked Moved C / C++ / MFC
questiontutoriallearning
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mac
    wrote on last edited by
    #1

    Hi, Can I include a gif file in the resource file. If yes, how can I load it, loadbitmap(...)??? Also, how to retreive the palette used in order to support 256 colors. Thanks

    C R 2 Replies Last reply
    0
    • M Mac

      Hi, Can I include a gif file in the resource file. If yes, how can I load it, loadbitmap(...)??? Also, how to retreive the palette used in order to support 256 colors. Thanks

      C Offline
      C Offline
      Chris
      wrote on last edited by
      #2

      yes. but don't. neither MFC nor Win32 supports GIF directly. even worse, if you want to use GIF code in your app (reading OR writing) you have to obtain a license from Unisys. many thousands of dollars... a better alternative is PNG - better compression, more flexible, free, well supported. here's a plug for my stuff, but there are plenty of places to find this kind of thing: http://www.smalleranimals.com/isource.htm -c

      1 Reply Last reply
      0
      • M Mac

        Hi, Can I include a gif file in the resource file. If yes, how can I load it, loadbitmap(...)??? Also, how to retreive the palette used in order to support 256 colors. Thanks

        R Offline
        R Offline
        Ryan Park
        wrote on last edited by
        #3

        Hi, Surely you can include one of GIF format.. If you need draw it or .jpg file format, use OleLoadPicture().. You know IE can draw many image formats.. As you can see on this site... Deep inside, this API use IPicture interface... Anyway...If you need some sample, thead to this thead..:-) With best wishes, -Ryan

        C 1 Reply Last reply
        0
        • R Ryan Park

          Hi, Surely you can include one of GIF format.. If you need draw it or .jpg file format, use OleLoadPicture().. You know IE can draw many image formats.. As you can see on this site... Deep inside, this API use IPicture interface... Anyway...If you need some sample, thead to this thead..:-) With best wishes, -Ryan

          C Offline
          C Offline
          Chris
          wrote on last edited by
          #4

          :: You know IE can draw many image formats. but, without a Unisys license, using it to draw GIF is illegal. if you like, i can find the MS page where they state this. -c

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups