Welcome, Guest. Please login or register.

Author Topic: Windows programming question...:) (png support)  (Read 1964 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Trev

  • Hero Member
  • *****
  • Join Date: May 2003
  • Posts: 1550
  • Country: 00
    • Show all replies
Re: Windows programming question...:) (png support)
« on: July 28, 2006, 08:52:33 PM »
Windows' support for JPEG is similar to its support for PNG. If you can't use GDI+, I would look at libpng <http://www.libpng.org/pub/png/libpng.html>. It's distributed under the zlib license, which has restrictions similar to the BSD and MIT licenses.
 

Offline Trev

  • Hero Member
  • *****
  • Join Date: May 2003
  • Posts: 1550
  • Country: 00
    • Show all replies
Re: Windows programming question...:) (png support)
« Reply #1 on: July 31, 2006, 09:28:16 PM »
Quote
Amiga datatypes come to mind..


Yeah, datatypes are cool. There's nothing similar in the Windows Platform SDK.

Quote
I was googling about using it in Win2k and found some previous GDI+ version(s?) had a flaw that allowed to execution of code from malicious jpeg images


As opposed to Amiga OS, which offers no protection from malicious code whatsoever? ;-) Software is inherently flawed. . . .

Quote
Anyway, before GDI+ how did most developers support jpeg and png etc., did M$ provided some standard lib ? I find it hard to believe they only added support for that after XP


By reading up on the file specs and supporting them natively? Or as adolescent said, by using a third party library. GDI was designed to put bitmap data on the screen. I don't think Microsoft much cared how you stored the data itself.