Saving bmps

This is a discussion on Saving bmps within the Windows Programming forums, part of the Platform Specific Boards category; Hi, i want to save a bitmap which's loaded onto a dialog window into the disk as a bmp/jpg file. ...

  1. #1
    Android
    Join Date
    Mar 2004
    Location
    Kurunegala Colony, Sri Lanka, Sri Lanka
    Posts
    365

    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.
    Some useless programs i've wrote : slprogrammersheaven
    Youtube: http://www.youtube.com/user/geekyzine
    My amature IT Blog: http://everything-geeky.blogspot.com/
    My Flash games: http://flashweed.blogspot.com/

    (and, sorry for my amature 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
    Join Date
    Mar 2004
    Location
    Kurunegala Colony, Sri Lanka, Sri Lanka
    Posts
    365
    >>Your program's dialog window or some other program's?
    it's mine.

    Thanx for the replys. i'll checkout the gdi+ library.
    Some useless programs i've wrote : slprogrammersheaven
    Youtube: http://www.youtube.com/user/geekyzine
    My amature IT Blog: http://everything-geeky.blogspot.com/
    My Flash games: http://flashweed.blogspot.com/

    (and, sorry for my amature 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
    Join Date
    Mar 2004
    Location
    Kurunegala Colony, Sri Lanka, Sri Lanka
    Posts
    365
    actually i'm not loading the bmp onto the dlg, i'm doing a screen cap.
    Some useless programs i've wrote : slprogrammersheaven
    Youtube: http://www.youtube.com/user/geekyzine
    My amature IT Blog: http://everything-geeky.blogspot.com/
    My Flash games: http://flashweed.blogspot.com/

    (and, sorry for my amature english)

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

    ╔╗╔╦══╦╗╔╦══╦╗
    ║╚╝║╔╗║╚╝║╔╗║║
    ║╔╗║╠╣║╔╗║╠╣╠╣
    ╚╝╚╩╝╚╩╝╚╩╝╚╩╝

    codez http://code.google.com/p/zxcvbn/

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, 12:17 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21