Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi,
I try to split a MultiTiff image into his single Frames. That works, but not very well. For example two 170kb (~400kb) images with 2 frames need round about 2 seconds and that's horrible slow. Anyone know how i can improve this?

private static TiffBitmapDecoder DecodeImage(Task task, string filename)
{
   Stream imageStreamSource = new FileStream(task.path + filename, FileMode.Open, FileAccess.Read);
   TiffBitmapDecoder decoder = new TiffBitmapDecoder(imageStreamSource, BitmapCreateOptions.IgnoreColorProfile,
   BitmapCacheOption.OnDemand);
   return decoder;
}
Posted
Updated 24-Mar-11 4:16am
v4

1 solution

Hi, I'm not pro. in that area but we are using LibTiff.Net 2.4 and it work just perfice with us.

I hope that will help.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900