This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Image-related questions


Image-related questions

Postby damian » Feb 9, 2003 @ 12:43am

Sorry if these are inane or were asked before, but:

1. How do you load JPEG images? I thought PF supported them, but whenever I try to load one I get a GPF.

2. How do you load image(s) from a buffer and not a resource, like for example after loading from a file using fread()?
damian
pm Insider
 
Posts: 3960
Joined: Sep 3, 2002 @ 7:59pm
Location: Acton, MA (home), NYC (school)


Postby fzammetti » Feb 9, 2003 @ 2:23am

...and so I said to Mr. Gates: "$640 billion should be enough for anyone!"
User avatar
fzammetti
pm Insider
 
Posts: 1496
Joined: Jun 4, 2002 @ 6:21pm
Location: Omnytex Technologies


Postby adde » Feb 9, 2003 @ 2:39am

User avatar
adde
pm Member
 
Posts: 152
Joined: Oct 9, 2002 @ 1:42pm
Location: Stockholm / Sweden


Postby damian » Feb 9, 2003 @ 2:44am

damian
pm Insider
 
Posts: 3960
Joined: Sep 3, 2002 @ 7:59pm
Location: Acton, MA (home), NYC (school)


Postby fzammetti » Feb 9, 2003 @ 2:59am

...and so I said to Mr. Gates: "$640 billion should be enough for anyone!"
User avatar
fzammetti
pm Insider
 
Posts: 1496
Joined: Jun 4, 2002 @ 6:21pm
Location: Omnytex Technologies


Postby damian » Feb 9, 2003 @ 3:01am

damian
pm Insider
 
Posts: 3960
Joined: Sep 3, 2002 @ 7:59pm
Location: Acton, MA (home), NYC (school)


Postby adde » Feb 9, 2003 @ 3:23am

User avatar
adde
pm Member
 
Posts: 152
Joined: Oct 9, 2002 @ 1:42pm
Location: Stockholm / Sweden


Postby damian » Feb 9, 2003 @ 4:02am

Yeah, but what if you want to have one file that contains more than one image?
damian
pm Insider
 
Posts: 3960
Joined: Sep 3, 2002 @ 7:59pm
Location: Acton, MA (home), NYC (school)


Postby adde » Feb 9, 2003 @ 4:43am

User avatar
adde
pm Member
 
Posts: 152
Joined: Oct 9, 2002 @ 1:42pm
Location: Stockholm / Sweden


Postby damian » Feb 9, 2003 @ 5:01am

damian
pm Insider
 
Posts: 3960
Joined: Sep 3, 2002 @ 7:59pm
Location: Acton, MA (home), NYC (school)


Postby fzammetti » Feb 9, 2003 @ 5:56am

Well, one advantage of having everything as resources is ease of installation. Having one file that contains everything means no potential problems with missing files, or corrupted files (beyond a corrupt executable of course), and an easier time coding an installer (assuming your doing your own, something like EZSetup I presume takes care of such details for you).

To say making everything resources is lazy I disagree with. There are certainly benefits to both approaches, and not having to keep track of multiple files I would personally consider a benefit. Either approach is perfectly valid and depending on your requirements and desires, one approach may suit you better than the other, but laziness isn't a factor I think for most, if not all people.
...and so I said to Mr. Gates: "$640 billion should be enough for anyone!"
User avatar
fzammetti
pm Insider
 
Posts: 1496
Joined: Jun 4, 2002 @ 6:21pm
Location: Omnytex Technologies


Postby damian » Feb 9, 2003 @ 3:00pm

OK, thanks for the clarifications. I just assumed that having a 5 MB .exe would be considered bad no matter what.
damian
pm Insider
 
Posts: 3960
Joined: Sep 3, 2002 @ 7:59pm
Location: Acton, MA (home), NYC (school)


Postby fzammetti » Feb 9, 2003 @ 5:08pm

...and so I said to Mr. Gates: "$640 billion should be enough for anyone!"
User avatar
fzammetti
pm Insider
 
Posts: 1496
Joined: Jun 4, 2002 @ 6:21pm
Location: Omnytex Technologies


Postby draklava » Feb 11, 2003 @ 11:40pm

To address the jpg quality issue... I found that storing a JPEG as a resource and then loading it messed up my images - might have converted 256 colors... however, loading a JPEG from a file does not mess with my images at all

when you mentined a quality problem, were you referring to loading from resource or file?
User avatar
draklava
pm Member
 
Posts: 79
Joined: May 15, 2002 @ 6:13am
Location: Atlanta, Albania, Wherever


JPEG issue

Postby Viking » Feb 12, 2003 @ 1:24pm

NavalStrike: tactical first person shooter for PocketPC.
http://www.navalstrike.com/
Viking
pm Member
 
Posts: 23
Joined: Nov 1, 2002 @ 11:12pm
Location: Intactics Co.


Return to PocketFrog & PocketHAL


Sort


Forum Description

SDKs for fast and robust device-independent access to Pocket PC display hardware.

Moderators:

sponge, Kzinti

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron