LEADTOOLS Annotations (Leadtools.Annotations assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
Apply(RasterImage) Method
See Also 
Leadtools.Annotations Namespace > AnnEncryptObject Class > Apply Method : Apply(RasterImage) Method



image
The Leadtools.RasterImage object to which to apply this AnnEncryptObject object.

The Apply(RasterImage) Method is available in LEADTOOLS Document and Medical Imaging toolkits.

image
The Leadtools.RasterImage object to which to apply this AnnEncryptObject object.
Applies this AnnEncryptObject object to an image.

Syntax

Visual Basic (Declaration) 
Overloads Public Overridable Sub Apply( _
   ByVal image As RasterImage _
) 
Visual Basic (Usage)Copy Code
Dim instance As AnnEncryptObject
Dim image As RasterImage
 
instance.Apply(image)
C# 
public virtual void Apply( 
   RasterImage image
)
C++/CLI 
public:
virtual void Apply( 
   RasterImage^ image
) 

Parameters

image
The Leadtools.RasterImage object to which to apply this AnnEncryptObject object.

Example

For an example, refer to AnnEncryptObject.

Remarks

An AnnEncryptObject object can have two states: it can be an encryptor or it can be a decryptor (Refer to Encryptor).

Use this method to apply this AnnEncryptObject object, whether it is an encryptor or a decryptor. Applying an encryptor means that the part of the image under the encryptor is scrambled according to the Key value.

Once applied, the portion of the image under the encrypt object becomes scrambled or unscrambled, and the encrypt object changes states (encryptors become decryptors, and decryptors be encryptors). Using different keys before calling this method gives different scrambling patterns. The decryptor state differs from the encryptor state in that a decryptor cannot be moved, and cannot be changed to an encryptor. The scrambling can be removed by calling Apply on the decryptor with the appropriate Key. If successful, the decryptor again changes state to become an encryptor. An encryptor can be moved, and can be changed to a decryptor.

The AnnEncryptObject is useful for encrypting portions of an image. After encrypting, the scrambled image cannot easily be unscrambled without the associated annotation file. The scrambling can be removed by using the associated annotation file, or by using automation mode to manually change the encrypt state from encryptor to a decryptor, position the object correctly, and setting the Key appropriately.

To apply the object to an image inside a Leadtools.WinForms.RasterImageViewer control, use Apply(RasterImageViewer).

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

Leadtools.Annotations requires a Document or Medical toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features