Click here to Skip to main content
15,902,112 members
Home / Discussions / C#
   

C#

 
Question[Message Deleted] Pin
tkrn17-Jul-08 15:07
tkrn17-Jul-08 15:07 
QuestionTranslation vb -> c# Pin
nelsonpaixao17-Jul-08 13:17
nelsonpaixao17-Jul-08 13:17 
Answer[Cross Post]Re: Translation vb -> c# Pin
Scott Dorman17-Jul-08 16:27
professionalScott Dorman17-Jul-08 16:27 
QuestionWebClient.DownloadFileAsync Pin
#realJSOP17-Jul-08 12:06
professional#realJSOP17-Jul-08 12:06 
AnswerRe: WebClient.DownloadFileAsync Pin
N a v a n e e t h17-Jul-08 17:49
N a v a n e e t h17-Jul-08 17:49 
GeneralRe: WebClient.DownloadFileAsync Pin
#realJSOP17-Jul-08 23:16
professional#realJSOP17-Jul-08 23:16 
QuestionC# WinForms: Read/Display Multipage Tiff image. Pin
ImNAM17-Jul-08 10:18
ImNAM17-Jul-08 10:18 
AnswerRe: C# WinForms: Read/Display Multipage Tiff image. [modified] Pin
astanton197818-Jul-08 1:16
astanton197818-Jul-08 1:16 
I was also looking for something like this, where I could handle individual pages of a multipage tiff and re order them (move first page to the back or remove it - cover sheets, etc).

This may allow you to iterate through the pages, but for me it was blowing up badly when I tried using the Bitmap.SaveAdd method to save the pages (GDI+ Exception). You may have better luck if you don't need to save these.

frameDimension = System.Drawing.Imaging.FrameDimension.Page
pageCount = inputFile.GetFrameCount(frameDimension)
For x As Integer = 0 To pageCount - 1
   'set page x as the active frame
   inputFile.SelectActiveFrame(frameDimension, x)
   nextPage = New System.Drawing.Bitmap(inputFile) 'may need overload for size
   'outputBitmap.SaveAdd(nextPage, encParams) <--blows up on me... you may not need to worry about it.
Next 'x



The best thing I could come up with to SAVE images was to use iTextSharp and do something like this... (copy and paste - I am doing many other things in between these lines ). You may not need this, but here it is anyway.

bmpImage = New System.Drawing.Bitmap(InputTIFFFile)
intTIFFPages = iTextSharp.text.pdf.codec.TiffImage.GetNumberOfPages(objRA)
For c As Integer = 0 To intTIFFPages - 1
   objImage = iTextSharp.text.pdf.codec.TiffImage.GetTiffImage(objRA, c + 1)
   'Do stuff with your images here.
Next 'c


These are all from 1.1 framework.

modified on Friday, July 18, 2008 7:22 AM

GeneralRe: C# WinForms: Read/Display Multipage Tiff image. Pin
ImNAM18-Jul-08 3:49
ImNAM18-Jul-08 3:49 
GeneralRe: C# WinForms: Read/Display Multipage Tiff image. Pin
astanton197821-Jul-08 1:35
astanton197821-Jul-08 1:35 
QuestionHow to format a number with an implied decimal Pin
Steve Messer17-Jul-08 8:46
Steve Messer17-Jul-08 8:46 
AnswerRe: How to format a number with an implied decimal Pin
PIEBALDconsult17-Jul-08 9:05
mvePIEBALDconsult17-Jul-08 9:05 
GeneralRe: How to format a number with an implied decimal Pin
Steve Messer17-Jul-08 9:11
Steve Messer17-Jul-08 9:11 
GeneralRe: How to format a number with an implied decimal Pin
Pete O'Hanlon17-Jul-08 10:27
mvePete O'Hanlon17-Jul-08 10:27 
GeneralRe: How to format a number with an implied decimal Pin
Steve Messer17-Jul-08 10:32
Steve Messer17-Jul-08 10:32 
GeneralRe: How to format a number with an implied decimal Pin
Pete O'Hanlon17-Jul-08 10:39
mvePete O'Hanlon17-Jul-08 10:39 
GeneralRe: How to format a number with an implied decimal Pin
PIEBALDconsult17-Jul-08 14:49
mvePIEBALDconsult17-Jul-08 14:49 
GeneralRe: How to format a number with an implied decimal Pin
Steve Messer17-Jul-08 18:09
Steve Messer17-Jul-08 18:09 
GeneralRe: How to format a number with an implied decimal Pin
PIEBALDconsult18-Jul-08 13:48
mvePIEBALDconsult18-Jul-08 13:48 
GeneralRe: How to format a number with an implied decimal Pin
Steve Messer18-Jul-08 17:07
Steve Messer18-Jul-08 17:07 
GeneralRe: How to format a number with an implied decimal Pin
PIEBALDconsult19-Jul-08 3:34
mvePIEBALDconsult19-Jul-08 3:34 
GeneralRe: How to format a number with an implied decimal Pin
Steve Messer19-Jul-08 13:49
Steve Messer19-Jul-08 13:49 
AnswerRe: How to format a number with an implied decimal Pin
SilimSayo17-Jul-08 9:26
SilimSayo17-Jul-08 9:26 
GeneralRe: How to format a number with an implied decimal Pin
Steve Messer17-Jul-08 9:43
Steve Messer17-Jul-08 9:43 
GeneralRe: How to format a number with an implied decimal Pin
darkelv17-Jul-08 17:08
darkelv17-Jul-08 17:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.