Screenshot. Save as PNG.
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: Screenshot. Save as PNG.

  1. #1
    Join Date
    Feb 2009
    Posts
    4

    Question Screenshot. Save as PNG.

    Hello, I'm looking for a way to take a screenshot and save it as a PNG.

    I came across this, for saving the image to a BMP:
    http://69.10.233.10/KB/cpp/Screen_Capture__Win32_.aspx

    But can find no examples or documentation of how I would save as a PNG instead.

    I'm fairly competent with the Win32 API and C++ in general, but this is the first time I've ever had to do something like this (I normally do very low-levl stuff) so I'm at a loss of where to look for the API (I searched MSDN but couldn't find anything, I'm probably overlooking something though).

    If someone could give me a nudge in the right direction I'd greatly appreciate it.

    Thanks.

  2. #2
    Join Date
    Feb 2009
    Posts
    4

    Re: Screenshot. Save as PNG.

    Nevermind. This seems to be the answer to my problem:
    http://msdn.microsoft.com/en-us/libr...8VS.80%29.aspx

    Finally dug deep enough in MSDN.

  3. #3
    Join Date
    Dec 2008
    Posts
    114

    Re: Screenshot. Save as PNG.

    You don't need CImage/ ATL
    PNG is native in Win32.

  4. #4
    Join Date
    Aug 2000
    Location
    New York, NY, USA
    Posts
    5,553

    Re: Screenshot. Save as PNG.

    Quote Originally Posted by carl666 View Post
    You don't need CImage/ ATL
    PNG is native in Win32.
    What do you mean by that?
    Could you please point me to a native Win32 API that work with PNG images?
    Vlad - MS MVP [2007 - 2012] - www.FeinSoftware.com
    Convenience and productivity tools for Microsoft Visual Studio:
    FeinViewer - an integrated GDI objects viewer for Visual C++ Debugger, and more...

  5. #5
    Join Date
    Feb 2009
    Posts
    4

    Re: Screenshot. Save as PNG.

    Quote Originally Posted by VladimirF View Post
    What do you mean by that?
    Could you please point me to a native Win32 API that work with PNG images?
    I was gonna ask the same thing.

Posting Permissions

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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center