c# - How to implement an image or pdf viewer? -
For the purpose of learning, I would like to know how to implement an image (and / or) PDF viewer themselves.
I am interested in general approach to implementing this way.
I have already read about different formats on pure (tiff / pdf), so I came to know that these files are in special format, where I want to see a headline where Footer and where image information is (in decrypted form).
Because I think that such a viewer works as a STH.
I should know, how to get the pixel position (in the case of a TIFF file)
How to make it as a control? Where should I place the pixels?
If I make a mistake, feel free to correct me, because ATMs do not really have any ideas and everything is just speculation.
Inno
PS: I would prefer a solution in C #, but if it is in any other language, then it is okay, too. The platform must be Microsoft Windows (First of all).
PPS: It should work without pre-installed PDF / View-App.
For any viewer you will need to see the specs for each file type that you want to display and Find out if its data is encoded or not. Some image formats make up on others, or use the same encoding techniques, while others are completely different from each other. PDF is the second animal. I have worked a bit with it and I remember what I remember It has been a while) It basically reflects itself as a series of objects, each with unique status, size and mixed properties depend on the type of object. They are
I will take a look at Wikipedia. There are really some good articles in some different image formats.
And this will definitely give you the documents of the official standards of the formats you want to cover.
Eventually you will end up reading / implementing RFC for each format:
JPEG -
PNG
GIF -
BMP -
HH
Comments
Post a Comment