public RasterImageChangedFlags Flags { get; } public:property RasterImageChangedFlags Flags {RasterImageChangedFlags get();}
Flags # get (RasterImageChangedEventArgs)
One or two members of the RasterImageChangedFlags enumeration that indicates what has changed in the image.
using Leadtools;using Leadtools.Codecs;using Leadtools.ImageProcessing;using Leadtools.ImageProcessing.Core;using Leadtools.ImageProcessing.Color;using Leadtools.Dicom;using Leadtools.Drawing;using Leadtools.Controls;using Leadtools.Svg;public void ChangedExample(){RasterCodecs codecs = new RasterCodecs();string srcFileName = Path.Combine(LEAD_VARS.ImagesDir, "Image1.cmp");// Load the imageRasterImage img = codecs.Load(srcFileName);// Subscribe to the Changed event of this imageimg.Changed += new EventHandler<RasterImageChangedEventArgs>(img_Changed);// Call a few methods and image processing commands that changes the imageConsole.WriteLine("Calling FlipViewPerspective");img.FlipViewPerspective(true);Console.WriteLine("Calling RotateViewPerspective");img.RotateViewPerspective(90);Console.WriteLine("Calling FlipCommand");FlipCommand flip = new FlipCommand(true);flip.Run(img);// Now disable firing the events and call the methods againConsole.WriteLine("Disabling the events");img.DisableEvents();Console.WriteLine("Calling FlipViewPerspective");img.FlipViewPerspective(true);Console.WriteLine("Calling RotateViewPerspective");img.RotateViewPerspective(90);Console.WriteLine("Calling FlipCommand while");flip.Run(img);// Re-enable the events and fire it manuallyConsole.WriteLine("Re-enabling the events");img.EnableEvents();Console.WriteLine("Firing the event manually");RasterImageChangedFlags flags = RasterImageChangedFlags.Data | RasterImageChangedFlags.ViewPerspective;RasterImageChangedEventArgs e = new RasterImageChangedEventArgs(flags);img.OnChanged(e);// Clean upimg.Changed -= new EventHandler<RasterImageChangedEventArgs>(img_Changed);img.Dispose();codecs.Dispose();}void img_Changed(object sender, RasterImageChangedEventArgs e){// Show the changed flagsConsole.WriteLine("Changed: {0}", e.Flags);}static class LEAD_VARS{public const string ImagesDir = @"C:\LEADTOOLS22\Resources\Images";}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
