Archived

This topic is now archived and is closed to further replies.

Help

This topic is 6016 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have made a window in DX. Now I need to make it handle bitmaps, and PCX files. How would I do that. Where, and how. All help will be greatly appreciated.

Share this post


Link to post
Share on other sites
Check here.

Also try looking for beginner guides, André Lamothe books, and web tutorials. There really is a lot out there on starting out, try doing a search on http://www.google.com/ instead of asking for live help, because someone somewhere out there has already explained what you''re looking for, it just takes some reading and elbow grease.

Good luck!




MatrixCubed
http://MatrixCubed.org






Share this post


Link to post
Share on other sites
I still can not find anything on it. Please just tell me.

***************Main Menu**********************
* 1. Say hi at cia007techie@home.com *
* 2. Visit Josh at www.joshworks.freehomepage.com *
* 3. Exit *
*********************************************
cin>>choice;

Share this post


Link to post
Share on other sites
We have little tolerance for people who just whine for help without having made a legitimate effort for help themselves. Figure it out like the rest of us did.

Edited by - merlin9x9 on June 27, 2001 12:46:48 PM

Share this post


Link to post
Share on other sites
I am not whining. I spent half of yesterday looking on forums, and doing web searches. I just do not understand. I need help, and I guess no one here is going to give it to me.
>=(
Joshman


***************Main Menu**********************
* 1. Say hi at cia007techie@home.com *
* 2. Visit Josh at www.joshworks.freehomepage.com *
* 3. Exit *
*********************************************
cin>>choice;

Share this post


Link to post
Share on other sites
Just because he wants some help and doesnt understand doesnt mean that you have to get on his case. If you learned it for yourself, tell him where you found your info. Give him a push in the right direction. If he still doesnt get it, just forget it, but there is no call for This kind of behavior.

And Josh, yes, you were whining. If no one gives you an answer, suck it up, and keep looking around. If you work on a problem for a week or so, and you still dont have an answer, post another message with a FAR more descriptive subject. "Help" does not cut it.

Z.

Share this post


Link to post
Share on other sites
1. I have tryed NeXe already. 2. I am on a tight schedule, and I dont have the time to look around for a little help. I came here for help, not this crap I get. 3. Who''s to say when I post a descriptive post, that I wont get the crap im getting. I am only a begginer, at Direct X, not a begginer at proggramming c/c++.
Unless any one here has something positive to say to me (example: Here is what you should do, or look specificly here for the answer, this is where i learned) then dont reply at all.
Joshman

Share this post


Link to post
Share on other sites
Some links:

Loading PCX files into DirectDraw surfaces:
http://www.geocities.com/SiliconValley/Park/8427/directx.htm (this is not English, but there is source code you can look at)

PCX file format:
http://www.crsltd.com/body/support/vsg23/support/pcxff.html
http://www.dcs.ed.ac.uk/home/mxr/gfx/2d-hi.html (many other formats here too)

DirectDraw programming:
http://www.geocities.com/SiliconValley/Bay/2535/ddrawtut.html

There are loads of other sites, but these are good starts for PCX->DirectDraw programming.

The short version is:
1) Open a PCX file
2) Allocate system memory that reads the compressed RGB-index data into it
3) Close the file
4) Allocate more system memory for the decompressed image
5) Follow the above tutorials for learning how to decompress
6) Deallocate the compressed image memory
7) Allocate a DirectDrawSurface in video memory
8) Copy the decompressed pixel data into the DDS
9) Deallocate the uncompressed image memory
10) Use Blt() to render to the DirectDraw backbuffer

That''s about all there is to it. This info is gleaned from instructions suggested by the people in this forum (research!), the only thing anyone could do more for you is write you the code specifically. It''s broken down into small manageable parts, I suggest reading up on basic C/C++ coding guides if you need further help. Also make sure that all your PCX files are using the same color index palette, otherwise you will have nightmares in glorious 8-bit color.

(Oh, and I found those links by spending 10 minutes doing searches on "PCX file format" and "DirectDraw tutorial" at www.google.com ... )




MatrixCubed
http://MatrixCubed.org






Share this post


Link to post
Share on other sites