Applies a Leadtools.ImageProcessing.RasterCommand to the current image in order to process it.
public void ApplyCommand(Leadtools.Imageprocessing.RasterCommand cmd)
Public Sub ApplyCommand( _ByVal cmd As Leadtools.Imageprocessing.RasterCommand _)
public:void ApplyCommand(Leadtools.Imageprocessing.RasterCommand^ cmd)
cmd
The Leadtools.ImageProcessing.RasterCommand to be applied to the image.
This example inverts the image and returns the inverted image into Leadtools.RasterImage object.
Imports LeadtoolsImports Leadtools.CodecsImports Leadtools.ImageProcessingImports Leadtools.Web.Controls<TestMethod()> _Public Sub WebImageViewer_FlipCommand()Dim mainWebImageViewer As WebImageViewer = New WebImageViewer()Dim cmd As FlipCommand = New FlipCommand()AddHandler mainWebImageViewer.ImageDataChanged, AddressOf mainWebImageViewer_ImageDataChangedmainWebImageViewer.ApplyCommand(cmd)RemoveHandler mainWebImageViewer.ImageDataChanged, AddressOf mainWebImageViewer_ImageDataChangedDim imageUrl As String = mainWebImageViewer.ImageInfo.UrlIf (Not mainWebImageViewer.ImageInfo.CacheFileName = String.Empty) ThenimageUrl = mainWebImageViewer.ImageInfo.CacheFileNameEnd IfDim codecs As RasterCodecs = New RasterCodecs()Dim filePath As String = mainWebImageViewer.Page.MapPath(imageUrl)Dim pageNumber As Integer = mainWebImageViewer.ImageInfo.PageIndex + 1Dim image As RasterImage = codecs.Load(filePath, 0, CodecsLoadByteOrder.BgrOrGray, pageNumber, pageNumber)End SubSub mainWebImageViewer_ImageDataChanged(ByVal sender As Object, ByVal e As EventArgs)'' "Image Data changed"...End Sub
using Leadtools;using Leadtools.Codecs;using Leadtools.Web.Controls;using Leadtools.ImageProcessing;public void WebImageViewer_FlipCommand(){WebImageViewer mainWebImageViewer = new WebImageViewer();FlipCommand cmd = new FlipCommand();mainWebImageViewer.ImageDataChanged += new EventHandler(mainWebImageViewer_ImageDataChanged);mainWebImageViewer.ApplyCommand(cmd);mainWebImageViewer.ImageDataChanged -= new EventHandler(mainWebImageViewer_ImageDataChanged);string imageUrl = mainWebImageViewer.ImageInfo.Url;if(mainWebImageViewer.ImageInfo.CacheFileName != string.Empty)imageUrl = mainWebImageViewer.ImageInfo.CacheFileName;RasterCodecs codecs = new RasterCodecs();string filePath = mainWebImageViewer.Page.MapPath(imageUrl);int pageNumber = mainWebImageViewer.ImageInfo.PageIndex + 1;RasterImage image = codecs.Load(filePath, 0, CodecsLoadByteOrder.BgrOrGray, pageNumber, pageNumber);}void mainWebImageViewer_ImageDataChanged(object sender, EventArgs e){// "Image Data changed"...}
|
Products |
Support |
Feedback: ApplyCommand Method - Leadtools.Web |
Introduction |
Help Version 19.0.2017.3.22
|

Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.