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 : Saturday, April 15, 2017 9:09:05 PM(UTC)
wangbill18

Groups: Registered
Posts: 50


Dim signature As AnnStampObject = New AnnStampObject()
With signature
Dim img As System.Drawing.Image = Image.FromFile(signatureFilePath)
Dim annPic As AnnPicture = New AnnPicture(img)
.Text = ""
.Picture = annPic
.Rect = New LeadRectD((_imageViewer.Image.Width / _imageViewer.Image.XResolution - 2) * inch, 2.5 * inch, 2 * inch, 0.5 * inch)
.Fill = Nothing
End With
_annAutomation.Container.Children.Add(signature)
 

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 : Monday, April 17, 2017 9:47:52 PM(UTC)
wangbill18

Groups: Registered
Posts: 50


it is good to have border right after adding stamp, but after burn, border is not needed.
 
#3 Posted : Wednesday, April 19, 2017 9:13:14 AM(UTC)
Christopher

Groups: Registered, Tech Support, Administrators
Posts: 89

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

This method removes the borders of all the annotation container's Stamp objects.
Run within the burn_click event.

Code:
private void RemoveBordersAndBurn(RasterImage image, AnnContainer container)
      {
         foreach(var obj in container.Children)
         {
            if (obj is AnnStampObject)
               obj.Stroke.StrokeThickness = LeadLengthD.Create(0);
         }

         image = annManager.RenderingEngine.RenderOnImage(container, image);
      }

Edited by moderator Tuesday, May 2, 2017 2:22:35 PM(UTC)  | Reason: Not specified

Chris Thompson
Developer Support Engineer
LEAD Technologies, Inc.

LEAD Logo
 
#4 Posted : Wednesday, April 19, 2017 7:27:28 PM(UTC)
wangbill18

Groups: Registered
Posts: 50


Thanks! that worked.
 
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.137 seconds.