amiga.org
     
iconAll times are GMT -6. The time now is 02:27 AM. | Welcome to Forum, please register to access all of our features.

» Amiga.org » The "Not Quite Amiga but still computer related category" » Alternative Operating Systems » Windows programming question...:) (png support)

Alternative Operating Systems This forum is dedicated to discussions of alternatives to the Commodore Amiga Platform, such as Linux distributions, FreeBSD, OpenBSD, and others.

Reply
 
Thread Tools Display Modes
Old 07-28-2006, 01:32 PM   #1
Jose
Kindred of Babble-on
Points: 21,917, Level: 92 Points: 21,917, Level: 92 Points: 21,917, Level: 92
Activity: 10% Activity: 10% Activity: 10%
 
Join Date: Feb 2002
Posts: 2,786
Default Windows programming question...:) (png support)

I was asked by someone to do a small app 4 windows. I read a tutorial on windows API for people already into C and it seems more or less straighforward. Now I have a small problem. GDI doesn't support PNG (or Jpeg but I prefer PNG) decoding of graphics objects and while GDI+ does it's only available by default in XP. Actually you can use it in previous Windows versions but the thing seems to be too much C++ oriented for my taste.
So I need to choose and learn another method and I was wondering what would be the best one considering it's usability in other future projects.

Cheers
__________________
\"We made Amiga, they {bleep}ed it up\"
Jose is offline   Reply With Quote
Old 07-28-2006, 01:52 PM   #2
Trev
Slacker
Points: 11,230, Level: 69 Points: 11,230, Level: 69 Points: 11,230, Level: 69
Activity: 2% Activity: 2% Activity: 2%
 
Trev's Avatar
 
Join Date: May 2003
Location: San Francisco, California, US
Posts: 1,514
Default Re: Windows programming question...:) (png support)

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.
Trev is offline   Reply With Quote
Old 07-28-2006, 05:55 PM   #3
Jose
Kindred of Babble-on
Points: 21,917, Level: 92 Points: 21,917, Level: 92 Points: 21,917, Level: 92
Activity: 10% Activity: 10% Activity: 10%
 
Join Date: Feb 2002
Posts: 2,786
Default Re: Windows programming question...:) (png support)

Amiga datatypes come to mind..

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

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 :-o

Checking libpng right now...
__________________
\"We made Amiga, they {bleep}ed it up\"
Jose is offline   Reply With Quote
Old 07-28-2006, 06:32 PM   #4
adolescent
Desperately needs a life
Points: 13,811, Level: 76 Points: 13,811, Level: 76 Points: 13,811, Level: 76
Activity: 7% Activity: 7% Activity: 7%
 
adolescent's Avatar
 
Join Date: Sep 2003
Posts: 3,056
Default Re: Windows programming question...:) (png support)

Quote:
Jose wrote:

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 :-o
Intel has/had a good JPEG library. I used it to convert from DIB to JPEG for a project about 10 years ago. :-D (I don't think PNG existed back then even.)

__________________
Time to move on. Bye Amiga.org.
adolescent is offline   Reply With Quote
Old 07-31-2006, 02:28 PM   #5
Trev
Slacker
Points: 11,230, Level: 69 Points: 11,230, Level: 69 Points: 11,230, Level: 69
Activity: 2% Activity: 2% Activity: 2%
 
Trev's Avatar
 
Join Date: May 2003
Location: San Francisco, California, US
Posts: 1,514
Default Re: Windows programming question...:) (png support)

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.
Trev is offline   Reply With Quote
Reply

Bookmarks

Tags
png , programming , question , support , windows

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Odd programming question trekiej Alternative Operating Systems 31 03-10-2008 04:15 PM
(Windows question) taskbar icons ross22 Alternative Operating Systems 6 11-14-2005 09:28 AM
programming question about interacting with MSSQL and MySQL mantisspider Amiga Software Issues and Discussion 8 11-29-2003 07:59 PM
Windows dual-boot question.. mepmepmep Amiga Software Issues and Discussion 15 11-01-2003 08:52 AM
Simple C programming question. elendil Amiga Software Issues and Discussion 6 02-26-2003 01:16 AM