Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Tuesday, March 27, 2007 9:50:51 AM(UTC)

jperks  
jperks

Groups: Registered
Posts: 5


I have the following code, the image loads but border is not removed.   

Dim strFileName As String = "C:/123.tif"

        _viewer = New RasterImageViewer
        _viewer.Dock = DockStyle.Fill
        _viewer.BackColor = Color.DarkCyan
        _viewer.InteractiveMode = RasterViewerInteractiveMode.Pan
        Controls.Add(_viewer)
        _viewer.BringToFront()
 

        RasterCodecs.Startup()
        _codecs = New RasterCodecs
        _codecs.Options.Abc.Save.QualityFactor = CodecsAbcQualityFactor.RemoveBorder



        Dim dlg As New FeedLoadDialog(_codecs, Nothing, strfilename)
        If (dlg.ShowDialog(Me) = System.Windows.Forms.DialogResult.OK) Then
            _viewer.Image = dlg.Image
        End If
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Saturday, March 31, 2007 5:32:49 AM(UTC)

Adnan Ismail  
Guest

Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)

Are you saving your TIFF image as an Abc image format? If not, the code you are using to remove borders will not work.

If you want to remover borders from the loaded images, use the BorderRemoveCommand.

For more information and code sample about this class, please read the help topic "BorderRemoveCommand Class".

 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.046 seconds.