Question
I want to write your own djvu reader in C #. Prompt where to start?
Program write in C # (Winforms) in Visual Studio. The problem arises in that I do not understand how to read djvu. Or rather take it apart to import each image for further display in the program.
Solution
DjVu is an open standard. There is a C++-based library which reads the format. You can just copy it if you can open source your code (it's GPL): http://djvu.sourceforge.net/.
If not, you can start with the specs at http://djvu.org/resources/ and code up your own from scratch.
Good luck!
OTHER TIPS
You start with File -> New Project
Stack overflow isn't a "do it for you" site.
problem arises in that I do not understand how to read djvu
You've identified the problem. The solution is then to read up on the format and the spec.
I have a C# Djvu reader which is open sourced. You can find it here: https://github.com/Telavian/DjvuNet
Edit: My library has been taken over by 4creators at: https://github.com/DjvuNet/DjvuNet
Use the FileStream
class to read the file.
Use the Bitmap
class (WinForms) or the WriteableBitmap
class (WPF) to write pixels.
CamiNova, the company that took over development and maintenance of DjVu from LizardTech makes a .NET SDK available. I would start there.
Telavian wrote:
"I have a C# Djvu reader which is open sourced. You can find it here: https://github.com/Telavian/DjvuNet"
Unfortunately, this project doesn't work fully. Normally the documents having some pages open only. The one-page documents which don't have PageHeader, don't boot. Dear Telavian, look please at this moment. I could send samples of documents which don't open