• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 245
  • Last Modified:

How do you load a PCX the Fast Way

I am currently loading a pcx but by doing a byte by byte way and plotting it on the screen then I started using a virtual screen, but still I did not want the long pause of blackness during the loading of the pcx.  

Is there a way to read word by word or even better double word.
0
kane020397
Asked:
kane020397
1 Solution
 
byangCommented:
You can read it line by line. Since you know the width of the image from the header, you know the maximum possible compressed line size, which is 2 times the width assuming no compression is possible.

The fastest way is to read the entire file into a memory buffer in one shot, the write an assembler routine to decode it.
0
 
kane020397Author Commented:
I was expecting more of a errmmm..... Faster method like the one the use in games such as jazz jack rabbit etc....

0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now