Solved

How do I use GetEncoderParameterList?

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SLMGR Switches Are Not Working On KMS Host 3 90
Write to file when application closes (by logoff) - VB.NET 1 31
vb.net help 4 29
No Data for DropDown List 2 22
Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

785 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