Page 1 of 1
Image-related questions

Posted:
Feb 9, 2003 @ 12:43am
by damian
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()?

Posted:
Feb 9, 2003 @ 2:23am
by fzammetti

Posted:
Feb 9, 2003 @ 2:39am
by adde

Posted:
Feb 9, 2003 @ 2:44am
by damian

Posted:
Feb 9, 2003 @ 2:59am
by fzammetti

Posted:
Feb 9, 2003 @ 3:01am
by damian

Posted:
Feb 9, 2003 @ 3:23am
by adde

Posted:
Feb 9, 2003 @ 4:02am
by damian
Yeah, but what if you want to have one file that contains more than one image?

Posted:
Feb 9, 2003 @ 4:43am
by adde

Posted:
Feb 9, 2003 @ 5:01am
by damian

Posted:
Feb 9, 2003 @ 5:56am
by fzammetti
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.

Posted:
Feb 9, 2003 @ 3:00pm
by damian
OK, thanks for the clarifications. I just assumed that having a 5 MB .exe would be considered bad no matter what.

Posted:
Feb 9, 2003 @ 5:08pm
by fzammetti

Posted:
Feb 11, 2003 @ 11:40pm
by draklava
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?
JPEG issue

Posted:
Feb 12, 2003 @ 1:24pm
by Viking