Solved

How do I use GetEncoderParameterList?

Posted on 2006-07-21
4
1,623 Views
Last Modified: 2008-01-09
Hi Experts,

What I really want to do is examine a TIFF file and check the compression method as we want to ensure that only files with CCITT FAX3 compression are accepted.  It's taken me a while to consider using GetEncoderParameterList and now that I have I don't seem able to make it work and can't find appropriate examples on the internet.  Can anybody help?

I imagine what I want to do is something like:

Create the image.
Get the Parameter list.
Check the compression parameter.

Seems simple but I'm struggling, probably because of all the Guid involvement which leaves me with a headache!  I don't know how to do this so haven't posted any code, but I'll reply soonest if you need anything.

Many thanks,
Mark
0
Comment
Question by:mdgower
  • 2
  • 2
4 Comments
 
LVL 15

Accepted Solution

by:
SnowFlake earned 500 total points
ID: 17152967
0
 

Author Comment

by:mdgower
ID: 17153455
Helps tremendously, thank you.

The question this raises for me now is how to be sure that PropertyItem(259) always refers to the compression method?  I'm sure that it does otherwise this code would be almost useless, but I'd be grateful if someone could explain to me why?  Why is it 259 at all, in fact?

Also, can anybody demonstate the use of GetEncoderParameterList to read rather than just save a parameter?

While I welcome these answers and will award points for them, the bulk will certainly go to SnowFlake for resolving my immediate issue.

Many thanks,
Mark
0
 
LVL 15

Expert Comment

by:SnowFlake
ID: 17162454
I am not directly familiar with Tiff structure,
but I guess this is just a fixed index definied in the structure of the file pointing to this information.

the proff for this might be buried somewhere in here:
http://www.ee.cooper.edu/courses/course_pages/past_courses/EE458/TIFF/
0
 

Author Comment

by:mdgower
ID: 17182230
Thanks Snowflake.  I couldn't quite find the answer I was looking for but certainly the problem has been resolved at least.  Thanks again.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now