1 Attachment(s)
Re: [RESOLVED] Save image loaded in picturebox as PCX...
Regarding post #24 and the pcx that is displayed slightly different. Here is the reason I believe. That pcx is not breaking on each scanline. The RLE is continuing across scanlines and is not the norm. Per ZSoft specs, "There will always be a decoding break at the end of each scan line." I've seen this issue addressed on the net & have modified my parser to account for these; which is how I detected the variance.
Edited: sample screenshot
Attachment 81751
If you'd like to discuss pcx formatting/ideas, maybe open a thread in the graphics section? I think we have hijacked the OP's thread for too long. Aggreed?
Re: [RESOLVED] Save image loaded in picturebox as PCX...
Good idea; it has deviated too far indeed, unexpectedly. I would try to open a new thread later today. I will take a look at aaa_8bpp first, interesting as it is. From the outset, I agree with you as I can see the logic/necessity of scanline break.
Edited: It seems the problem is something else (I've revisited the original code and found there are already scanline breaks). I've now opened a new thread accordingly.
Re: [RESOLVED] Save image loaded in picturebox as PCX...
Just to inform:
Compression subroutine is available now, see Posting #1 in
http://www.vbforums.com/showthread.php?t=636793
The subroutine has been well tested, with actual data saved as 8-BPP and/or 24-BPP of different sizes (from small to big), and the saved 8-BPP and 24-BPP files loaded and displayed on AZ Paint Pro, IrfanView, FreeImage and PhotoShop all alright.
Re: [RESOLVED] Save image loaded in picturebox as PCX...
Just Saying: I have written a Data Stripper routine, that has one way to SaveAs and another to Open file data into a TextBox. I am still working on getting them to appear inside a PictureBox, instead of the TextBox.