2004.12.08 13:19 "Re: [Tiff] Q: writing tiled TIFFs", by Sachin Garg
is there a simple tutorial for writing tiled TIFFs? i've looked at the sample apps, but i'm not quite sure what all is going on in there. you C guys sure do hate whitespace and passing parameters where a global variable will suffice!
Rather than assuming whatz correct and whatz not, you must try to understand that there can be more than one correct way of achieving the same results. Just because you are not accustomed/familiar with a style is a perfectly wrong reason to disregard something which works perfectly (or atleast good enough)
hold on. i never said their code wasn't "correct".
i'd just prefer to see a simple explanation of what TIFFWriteTile expects, what the rules are for tile sizes, what z-order means here, etc..
Technically your question is ofcourse valid and I am sure you would have got your reply in the other more informative posts.
Its just that that your opinion, rather remark, on "the C guys" was not needed and not 'correct' here either. I just have three things to say:
- It is possible to write very elegent C code. (Although I myself prefer C++)
- I dont remember reading much badly-coded C-code in libtiff.
- Such opinions, especially when you are requesting assitance, may result in you not getting any informative replies. Fortunately for you, the guys here are much more level-headed than most other forums/mailing-lists/newsgroups I visit.
My apologies if i sounded a bit rude.
btw, Many open-source projects dont have documentation good-enough for those who are new to the particular application domain (and thatz perfectly ok). Code itself is the most comprehensive documentation (although not always easy to read). Thatz why I suggested that book on code-reading which taught me some things.
Best of luck :-)
Sachin Garg [India]