LEADTOOLS Annotations Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.22
Implementing Annotation Security
Note: This topic is for Document/Medical only. LEADTOOLS provides annotation security through a number of functions. To lock annotation objects, use the following methods: When you lock an object, the password used is stored in the Password property. To unlock annotation objects, use the following methods: Use the AnnContainer.LockPicture property to get or set the image to be used when drawing the locked symbol for locked objects. By default the container uses a picture of a "lock". In design mode this picture is always drawn. The picture is drawn at the upper-left edge of the bounding rectangle of the AnnObject object. Set the AnnContainer.DrawLockedInRunMode property value to true if the container should draw the AnnContainer.LockPicture on top of locked objects when the container is in run mode. Use the IsLocked property to determine whether an object is locked. Use the AnnAutomation.CanUnlock property to determine whether the object currently being edited can be unlocked, and the AnnAutomation.CanLock property to determine whether the object currently being edited can be locked. If you are interested in obscuring or blacking out a rectangular portion of an image, consider using the AnnRedactionObject. If you are interested in encrypting a rectangular portion of an image (or an entire image), consider using the AnnEncryptObject, which scrambles the designated portion of the bitmap using a pattern that varies according to the AnnEncryptObject.Key property that you supply during the encryption process.

Related topics: