Thread: jpeg or gif of buttons

  1. #1
    Registered User
    Join Date
    May 2002
    Posts
    21

    Question jpeg or gif of buttons

    I want to insert jpeg or gif image on button
    for my project. I am using mfc classes. Can any body
    guide to achieve my task

    thanks in advance

  2. #2
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,868
    I'm not 100% about which one (I use just the WIN32 API not MFC) but you will need to use an image conversion libary. That is Windows only realy deals with bitmaps. So to use jpgs you need a libary to convert them to bitmaps (kind of).

    GDI and or GDI++ are the MS ones and free (again not 100%)

    I use a version from smalleranimalsoftware that is fast and has some very good functions but is not free.
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

  3. #3
    Registered User
    Join Date
    May 2002
    Posts
    21

    Question gif or jpeg buttons

    I could not follow ! I want to insert just like to I do with
    CBitmapButton Class.

    I wan't a guidance in that regard

    any help could be considered with high regards

  4. #4
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,868
    You can't.

    Need to make jpg == bitmap

    look here

    http://www.codeguru.com/gdi/GDIPlus.html
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 1
    Last Post: 04-09-2009, 02:31 AM
  2. C++ Equivalent JPEG Functions?
    By stickman in forum C++ Programming
    Replies: 9
    Last Post: 05-06-2006, 10:50 AM
  3. JPEG, GIF etc.
    By playwin in forum Windows Programming
    Replies: 6
    Last Post: 01-19-2005, 12:05 PM
  4. Bitmap... gif...jpeg...
    By Devil Panther in forum Windows Programming
    Replies: 2
    Last Post: 01-28-2003, 08:20 AM
  5. Grouping radio buttons
    By Bazz in forum Windows Programming
    Replies: 1
    Last Post: 08-28-2001, 07:15 AM