Hi

I have a program that reads PCL data and converts to bitmaps.
I am using a stringlist for this data. I read the strings and convert
them to binary, loop through the binary lines and draw black pixels
for 1s and white pixels for 0s.

The program works and is very fast. However, sometimes the LAST
line is skipped when converting to dots.

I have created a strings object where I write each line of data just
after convertion to dots. This registers correctly so I know that my
data is not corrupt when the routine reads the strings.

Typically, there are between 3 and 40 lines for each character
and each line contains around 36  elements of 1s or 0s.

I have checked all initial values before drawing on the bitmap
canvas using canvas.fillrect.

The problem is this error only happens sometimes, [but always
the same files]. I have checked these files using a hex editor and
the data is definitely present.

Any thoughts would be extremely welcome.

Thanks in advance

Neil




_______________________________________________
Delphi mailing list
Delphi@elists.org
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi

Reply via email to