Reputation: 127
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.
Upvotes: 1
Views: 2947
Reputation: 3832
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
Upvotes: 4
Reputation: 1
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
Upvotes: 0
Reputation: 27419
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!
Upvotes: 4
Reputation: 346
CamiNova, the company that took over development and maintenance of DjVu from LizardTech makes a .NET SDK available. I would start there.
https://www.caminova.net/en/downloads/download.aspx?id=17
Upvotes: 0
Reputation: 25116
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.
Upvotes: 5
Reputation: 887305
Use the FileStream
class to read the file.
Use the Bitmap
class (WinForms) or the WriteableBitmap
class (WPF) to write pixels.
Upvotes: 1