Forcing a specific respolution to tiff

Example requests & Code samples for GdPicture Toolkits.
Post Reply
mp33487
Posts: 54
Joined: Wed May 06, 2009 4:26 am

Forcing a specific respolution to tiff

Post by mp33487 » Tue May 12, 2009 5:46 am

I receive tiffs from many DPIs including fax resolutions and 400 dpi. How can I force my tiff to 200 dpi to reduce file size? I am already doing deskew on my tiffs and want to add the conversion during my clean-up process. Thanks.

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Forcing a specific respolution to tiff

Post by Loïc » Tue May 12, 2009 10:22 am

Hi,

Code: Select all

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim oGdPictureImaging As New GdPicture.GdPictureImaging
        Dim ImageID As Integer

        oGdPictureImaging.SetLicenseNumber("XXX")
        ImageID = oGdPictureImaging.CreateGdPictureImageFromFile("")
        oGdPictureImaging.Scale(ImageID, 50)
        oGdPictureImaging.SaveAsTIFF(ImageID, "c:\test.tif", TiffCompression.TiffCompressionCCITT4)
        oGdPictureImaging.ReleaseGdPictureImage(ImageID)
    End Sub

PS: The reference guide should be useful for you! https://www.gdpicture.com/guides/gdpicture/v6/html/content

Kind regards,

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest