Multimobile Development: Building Applications for any Smartphone
Tiff Manipulation in ASP.NET/VB.NET
Messages   Related Types
This message was discovered on ASPFriends.com 'ngfx-drawing' list.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.

Quinn, Frederick G.
-- Moved from [aspngvs] to [ngfx-drawing] by Click here to reveal e-mail address --I am designing an application which will take the name of an existing TIFF file and allow the user to view a listing of the various pages contained in the TIFF, as well as extract individual pages from the TIFF and save them as separate files. I am looking for information on manipulating TIFF's in the .net framework using vb.net and asp.net. Using the System.Drawing.Image object, I have been able to load a tiff file using the .fromfile method. However, I am unable to find any methods or properties which give me access to the individual pages in the tiff, or even anything that would indicate the number of pages in the tiff.Am I asking more of these objects than they can deliver...??Thanks very much for any help/direction you can offerFred Quinn
Reply to this message...
Vote that this is a GOOD answer...
 
Really good experience at the Apple Store
MonoDroid – looking *awesome*
 
    
Mitch Denny (VIP)
Frederick,

I had a look at the Image class in the framework and it
has two interesting methods, GetFrameCount(...) and
SelectActiveFrame(...). I confess that I don't know much
about the TIFF image format other than you can have more
than one image encoded within it.

Unfortunately I was unable to build a prototype that
did what you wanted. The sample image I used was a two
picture TIFF, when I called the GetFrameCount method
it did return the number 2. This was a positive sign.

I then called SelectActiveFrame but it didn't seem
to do much for me. Maybe you will have better luck. After
digging through the IL to see what is happening, much
of the functionality seems to be burried in native
calls wrapped in managed code, so it wasn't much help.

There is a very slight (very slight) possibility that
the functionality was included in BETA 2 and might
be there by the time RTM comes around, but it is more
likely that the functionality won't be there.

Has anybody else had any success?

----------------------------------------
- Mitch Denny
- http://www.warbyte.com
- Click here to reveal e-mail address
- +61 (414) 610-141
-

[Original message clipped]

Reply to this message...
Vote that this is a GOOD answer...
 
 
    
ike conde
i found a solution, if you still having this prolem just e-mail me
Reply to this message...
Vote that this is a GOOD answer...
 
 
 
System.Drawing.Image




Ad
BootFX
Reliable and powerful .NET application framework.
iOS, Android and Windows Phone Development Training and Consultancy
Hosted by RackSRV Communications
 
Multimobile Development: Building Applications for any Smartphone
Copyright © AMX Software Ltd 2008-2010. Portions copyright © Matthew Baxter-Reynolds 2001-2010. All rights reserved.
Contact Us - Terms of Use - Privacy Policy - 4.0.30129.1734