Load, clean-up and save a tiff image

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

Load, clean-up and save a tiff image

Post by mp33487 » Wed May 06, 2009 4:33 am

Can you please show me how to load a tiff,clean-up the image (Deskew) and save it to disk? I cannot get the .NET version to do work correctly with the viewer and imaging object. Thanks in advance.

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

Re: Load, clean-up and save a tiff image

Post by Loïc » Thu May 07, 2009 2:19 pm

Hi,

There is a lot of 'clean-up' function within GdPicture.NET I suggest you to brows the reference guide to find what you exactly need.
Here a sample to deskew an image automatically.

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.AutoDeskew(ImageID)
        oGdPictureImaging.SaveAsTIFF(ImageID, "c:\test.tif", TiffCompression.TiffCompressionCCITT4)
        oGdPictureImaging.ReleaseGdPictureImage(ImageID)
    End Sub

Kind regards,

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest