Leadtools.Annotations Namespace > IAnnAutomationControl Interface : AutomationImageChanged Event |
event EventHandler AutomationImageChanged
'Declaration Event AutomationImageChanged As EventHandler
'Usage Dim instance As IAnnAutomationControl Dim handler As EventHandler AddHandler instance.AutomationImageChanged, handler
event EventHandler AutomationImageChanged
add_AutomationImageChanged(function(sender, e)) remove_AutomationImageChanged(function(sender, e))
event EventHandler^ AutomationImageChanged
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.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2