This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Tuesday, March 27, 2007 9:50:51 AM(UTC)
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
#2
Posted
:
Saturday, March 31, 2007 5:32:49 AM(UTC)
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.