Solved

How do I use GetEncoderParameterList?

Posted on 2006-07-21
4
1,649 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

830 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