Annulé

Extracting Frames From a TIF Compression Issue - 01/05/2018 13:05 EDT

I have the following function that is creating multipage tif files from a larger image. I need the Images to be Compression-CCITT4 images rather than the LZW this is creating.

Public Sub ExtractTiffFrames(ByVal start As Integer, ByVal endX As Integer, ByVal inputFileName As String, ByVal outputFileName As String)

Try

Dim MasterBitmap As Bitmap = New Bitmap(inputFileName)

'Start page of document(master)

Dim imageAdd As Image = [url removed, login to view](inputFileName)

'Frame Image that will be added to the master

Dim guid As Guid = [url removed, login to view](0)

'GUID

Dim dimension As FrameDimension = New FrameDimension(guid)

' start index cannot be less than 0 and cannot be greater than frame count

If ((start < 1) _

OrElse (endX > [url removed, login to view](dimension))) Then

Return

End If

Dim ep As EncoderParameters = New EncoderParameters(1)

'Get Image Codec Information

Dim codecs() As ImageCodecInfo = [url removed, login to view]

Dim codecInfo As ImageCodecInfo = codecs(3)

'image/tiff

'MultiFrame Encoding format

Dim epMultiFrame As EncoderParameter = New EncoderParameter([url removed, login to view], CType([url removed, login to view], Long))

[url removed, login to view](0) = epMultiFrame

[url removed, login to view](dimension, (start - 1))

[url removed, login to view](outputFileName, codecInfo, ep)

'create master document

'FrameDimensionPage Encoding format

Dim epFrameDimensionPage As EncoderParameter = New EncoderParameter([url removed, login to view], CType([url removed, login to view], Long))

[url removed, login to view](0) = epFrameDimensionPage

Dim i As Integer = start

Do While (i < endX)

[url removed, login to view](dimension, i)

'select next frame

[url removed, login to view](New Bitmap(imageAdd), ep)

'add it to the master

i = (i + 1)

Loop

'Flush Encoding format

Dim epFlush As EncoderParameter = New EncoderParameter([url removed, login to view], CType([url removed, login to view], Long))

[url removed, login to view](0) = epFlush

[url removed, login to view](ep)

'flush the file

Catch ex As Exception

Throw ex

End Try

End Sub

Compétences : Programmation C#, Visual Basic pour les apps

en voir plus : \ extracting data from PDF\ , SSC [SSC(ATC)] 01/2018, Python script extracting numbers from image to spreadsheet, windows desktop, c++ programming, microsoft, windows api, Help With Extracting Data From A List Of Products (USPTO), extracting contacts from professional sites, gather venue data from selected websites including venue name address suburb state, postcode, web url, fb page url, fb page id,, gather venue data from selected websites including venue name address suburb state postcode web url fb page url fb page id, extracting frames video java, extracting frames flv, extracting video frames, itext extracting tif pdf, load php frames, load frames php, css template frames, migrating 2003 exchange 2007 time frames, extracting data yellow pages

Concernant l'employeur :
( 22 commentaires ) United States

Nº du projet : #16851496

2 freelance font une offre moyenne de $24 pour ce travail

vano101

Hello I think I solved similar problem recently. That project involved writing TIFF with CCITT4 encoding...

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(535 Commentaires)
6.8
djpeka

Hello. As a professional programmer, I'm up for this task .

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(2 Commentaires)
2.9