Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 29th, 2005, 05:53 AM
Registered User
 
Join Date: Jun 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem while handling Tiff Images

Hi,

I am opening tiff ( single page /multiple page ) files in my application.

I am facing the following problem while handling tiff files that are either
1. Created in Photoshop with zip compression
2. Opened after editing in Microsoft Office Document Imaging( editing like creating multipages from a single page file)


When I create a Bitmap from these files so as to use that to extract frames:

using (Bitmap mbmapfile = new Bitmap(imagename))
{

Guid[] mfdlistfile= mbmapfile.FrameDimensionsList;
FrameDimension mfdfile= new FrameDimension(mfdlistfile[0]);
pages = mbmapfile.GetFrameCount(mfdfile);
size = new Size(mbmapfile.Size.Width,mbmapfile.Size.Height);

}

I get System.ArgumentException: Invalid parameter used in the line;

Bitmap mbmapfile = new Bitmap(msfilenamepath)

This code is working fine for most of the tiff files.

Kindly suggest any solution.

Thanks






Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with images...... kethireddy435 ASP.NET 2.0 Basics 2 September 17th, 2007 11:37 PM
Problem with images....... kethireddy435 ASP.NET 1.x and 2.0 Application Design 1 September 14th, 2007 11:20 AM
Arch and Design : Involving Tiff images navdeep General .NET 2 July 17th, 2007 05:50 AM
Working with TIFF images Freedolen Perl 3 March 16th, 2007 10:55 AM
HELP!!! the problem of handling special character kemin Classic ASP Databases 1 December 13th, 2003 01:31 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.