LEADTOOLS Annotations (Leadtools.Annotations assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
AutomationImageChanged Event
See Also 
Leadtools.Annotations Namespace > IAnnAutomationControl Interface : AutomationImageChanged Event



The AutomationImageChanged Event is available in LEADTOOLS Document and Medical Imaging toolkits.

An event that triggers whenever the properties of the image being automated is changed.

Syntax

Visual Basic (Declaration) 
Event AutomationImageChanged As EventHandler
Visual Basic (Usage)Copy Code
Dim instance As IAnnAutomationControl
Dim handler As EventHandler
 
AddHandler instance.AutomationImageChanged, handler
C# 
event EventHandler AutomationImageChanged
C++/CLI 
event EventHandler^ AutomationImageChanged

Example

For an example, refer to IAnnAutomationControl.

Remarks

If you are using a Leadtools.RasterImage object, then you trigger this event whenever the RasterImage.Changed event occures. Note that this event should occur when the image physical properties has changed, for example, its width/height or resolution or when a new image is set in your control (if supported) and not when the pixel data of the image has changed which only requires a re-paint. For these changes, use the IAnnAutomationControl.AutomationPaint event. If your requirement does not have an image that will be changed while being automated, then you do not have to trigger this event. When this event triggers, the automation object will query the IAnnAutomationControl.AutomationImageWidth, IAnnAutomationControl.AutomationImageHeightIAnnAutomationControl.AutomationImageDpiX and IAnnAutomationControl.AutomationImageDpiY properties to recalculate the size of the container.

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

Reference

IAnnAutomationControl Interface
IAnnAutomationControl Members

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