Converting jpg images 2 multipage tiff with JPEG compression

Example requests & Code samples for GdPicture Toolkits.
Post Reply
User avatar
Loïc
Site Admin
Posts: 5689
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Converting jpg images 2 multipage tiff with JPEG compression

Post by Loïc » Tue Jul 26, 2011 3:55 pm

Code: Select all

   Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
      Dim oGdPictureImaging As New GdPictureImaging()
      Dim JpegID As Integer
      Dim TiffID As Integer
      oGdPictureImaging.SetLicenseNumber("XXX") 'Replace xxx by valid key


      JpegID = oGdPictureImaging.CreateGdPictureImageFromFile("c:\test1.jpg")
      oGdPictureImaging.TiffSaveAsMultiPageFile(JpegID, "c:\multipage.tif", TiffCompression.TiffCompressionJPEG)
      TiffID = JpegID
      JpegID = oGdPictureImaging.CreateGdPictureImageFromFile("c:\test1.jpg")
      oGdPictureImaging.TiffAddToMultiPageFile(TiffID, JpegID)
      oGdPictureImaging.ReleaseGdPictureImage(JpegID)
      JpegID = oGdPictureImaging.CreateGdPictureImageFromFile("c:\test1.jpg")
      oGdPictureImaging.TiffAddToMultiPageFile(TiffID, JpegID)
      oGdPictureImaging.ReleaseGdPictureImage(JpegID)
      oGdPictureImaging.TiffCloseMultiPageFile(TiffID)
   End Sub

Gabriela
Posts: 439
Joined: Wed Nov 22, 2017 9:52 am

Re: Converting jpg images 2 multipage tiff with JPEG compression

Post by Gabriela » Tue Apr 02, 2019 7:43 am

Please find the updated examples in the Reference guide here:
TiffAddToMultiPageFile Method (GdPictureImaging)
Kind regards,

Gabriela
GdPicture Team

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest