Visual Basic (Declaration) | |
---|---|
Protected MustOverride Sub Apply( _ ByVal args As ImageProcessingActionExecuteArgs _ ) |
C# | |
---|---|
protected abstract void Apply( ImageProcessingActionExecuteArgs args ) |
Parameters
- args
- An instance of the ImageProcessingActionExecuteArgs class that encapsulates data concerning the image processing workflow.
This method must be implemented in every ImageProcessingFilter class.
It is automatically called by Piczard for example when the GetProcessedImage method is invoked.
- The Apply method takes as input (source Image) the property ImageProcessingActionExecuteArgs.Image.
- After the image has been processed, the Apply method method must store the output Image in the property ImageProcessingActionExecuteArgs.Image.
In this way the next ImageProcessingFilter in the chain (ImageProcessingJob.Filters) will use it as input.
When a new value is set for the property ImageProcessingActionExecuteArgs.Image, the previous one is automatically disposed.
Please see:
- How To Develop A Custom Image Processing Filter
- The Example A.401 - "Custom filters" / MyCustomFilter1.
Requirements
Platforms: Windows 8, Windows 7, Windows Vista, Windows XP Professional, Windows 2000 - Windows Server family: 2012, 2008.R2, 2008, 2003, 2000