I apologize for my numerous postings on this subject.
I've tried to illustrate my concept a little better by posting a representation of the file I am trying to work with.
What I need to do is, once I have the PCX file loaded in, I need to be able to extract a "frame" from the PCX file itself. For example, if the file is 36 by 180, and I wanted to get the SECOND sequential 36 x 36 block I would need to go to coordinates 0,36 | 36,72....like this:
THIS IS ONE CONTINUOUS COLLECTION OF 36 x 36 pixel squares. The dimensions of the entire image are 36 x 180 pixels for a total of 5 variations or "frames" going vertically. If you we're to look at the .PCX file in MSPaint it would look like this:
SAMPLE.PCX
XXXXX
X X
X X <-Variation 1
X X
XXXXX
X X
X X <-Variation 2
X X
XXXXX
X X
X X <-Variation 3
X X
XXXXX
X X
X X <-Variation 4
X X
XXXXX
X X
X X <-Variation 5
X X
XXXXX
How would I extract Variation # 2?
I am VERY new at this, so I will require a FULLY FUNCTIONING procedure or function that I can just paste into my code and away I go.
The source code is available upon request. Just send me mail at knowltonfamily@yahoo.com
A working demo of the Map Editor is available for download at:
www.enol.com/~knowlton
Regards,
Viktor Ivanov