Solved

How do you load a PCX the Fast Way

Posted on 1997-05-31
2
215 Views
Last Modified: 2010-04-10
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
Comment
Question by:kane020397
2 Comments
 
LVL 3

Accepted Solution

by:
byang earned 90 total points
ID: 1163781
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
 

Author Comment

by:kane020397
ID: 1163782
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now