Thread: Saving bmps

  1. #1
    Android geek@02's Avatar
    Join Date
    Mar 2004
    Location
    Kurunegala Colony, Sri Lanka, Sri Lanka
    Posts
    470

    Saving bmps

    Hi,
    i want to save a bitmap which's loaded onto a dialog window into the disk as a bmp/jpg file. What are the things i should learn to do this? what msdn articles i should read?
    Thanx a lot for any help.
    GameJolt: https://gamejolt.com/@KasunL
    Game Development Youtube:
    https://is.gd/XyhYoP
    Amateur IT Blog: http://everything-geeky.blogspot.com/



    (and, sorry for my amateur English)

  2. #2
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    Could you be more specific?
    Your program's dialog window or some other program's?
    "The Internet treats censorship as damage and routes around it." - John Gilmore

  3. #3
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    The simplest way is to use gdi+ which has built in support for both file types you have mentioned. In particular, refer to Using Image Encoders and Decoders.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  4. #4
    Android geek@02's Avatar
    Join Date
    Mar 2004
    Location
    Kurunegala Colony, Sri Lanka, Sri Lanka
    Posts
    470
    >>Your program's dialog window or some other program's?
    it's mine.

    Thanx for the replys. i'll checkout the gdi+ library.
    GameJolt: https://gamejolt.com/@KasunL
    Game Development Youtube:
    https://is.gd/XyhYoP
    Amateur IT Blog: http://everything-geeky.blogspot.com/



    (and, sorry for my amateur English)

  5. #5
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    Why do you want to save it as a file?
    If you can output it in a dialog, it means you already have it as a resource (bmp).
    "The Internet treats censorship as damage and routes around it." - John Gilmore

  6. #6
    Android geek@02's Avatar
    Join Date
    Mar 2004
    Location
    Kurunegala Colony, Sri Lanka, Sri Lanka
    Posts
    470
    actually i'm not loading the bmp onto the dlg, i'm doing a screen cap.
    GameJolt: https://gamejolt.com/@KasunL
    Game Development Youtube:
    https://is.gd/XyhYoP
    Amateur IT Blog: http://everything-geeky.blogspot.com/



    (and, sorry for my amateur English)

  7. #7
    Registered User Tonto's Avatar
    Join Date
    Jun 2005
    Location
    New York
    Posts
    1,465

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Saving Game data algorithm,perhaps?
    By Sentral in forum Game Programming
    Replies: 2
    Last Post: 08-25-2006, 06:14 PM
  2. Replies: 2
    Last Post: 06-16-2005, 10:03 AM
  3. Saving Map Array To Disk
    By Tommaso in forum Game Programming
    Replies: 4
    Last Post: 07-18-2003, 12:03 AM
  4. Saving int to file as text?
    By napkin111 in forum C++ Programming
    Replies: 9
    Last Post: 04-16-2003, 06:17 AM
  5. File saving problem in DevC++ pls help ???
    By intruder in forum C Programming
    Replies: 3
    Last Post: 12-17-2002, 01:17 AM