LoadImageProcessingActions Method
CodeCarvings.Piczard
LoadImageProcessingActions Method
See Also  Example Send Feedback
CodeCarvings.Piczard Namespace > ImageProcessingFilter Class : LoadImageProcessingActions Method

args
An instance of the ImageProcessingActionLoadArgs class that encapsulates data concerning the "LoadActions" phase of the image processing workflow.
Initializes and loads one more ImageProcessingAction objects that will be used during the image processing workflow.

Syntax

Visual Basic (Declaration)  
Protected Overridable Sub LoadImageProcessingActions( _
   ByVal args As ImageProcessingActionLoadArgs _
) 
C#  
protected virtual void LoadImageProcessingActions( 
   ImageProcessingActionLoadArgs args
)

Parameters

args
An instance of the ImageProcessingActionLoadArgs class that encapsulates data concerning the "LoadActions" phase of the image processing workflow.

Example

By overriding the LoadImageProcessingActions method you can, for example, automatically apply 2 or more filters.
C# Copy Code
protected override void LoadImageProcessingActions(ImageProcessingActionLoadArgs args)
{
   
// Filter #1
   
args.LoadImageProcessingActions(FixedCropConstraint.Get(300, 200));

   
// Filter #2
   
TextWatermark watermark = TextWatermark.Get(this.Text, ContentAlignment.TopCenter);
   watermark.Font.Size = 12;
   watermark.ForeColor = Color.Black;
   args.LoadImageProcessingActions(watermark);

   
// Filter #3
   
args.LoadImageProcessingActions(DefaultColorFilters.Sepia);
}
Visual Basic Copy Code
Protected Overrides Sub LoadImageProcessingActions(ByVal args As ImageProcessingActionLoadArgs)
    ' Filter #1
    args.LoadImageProcessingActions(FixedCropConstraint.Get(300, 200))

    ' Filter #2
    Dim watermark As TextWatermark = TextWatermark.Get(Me.Text, ContentAlignment.TopCenter)
    watermark.Font.Size = 12
    watermark.ForeColor = Color.Black
    args.LoadImageProcessingActions(watermark)

    ' Filter #3
    args.LoadImageProcessingActions(DefaultColorFilters.Sepia)
End Sub

Remarks

This method is automatically called by Piczard for example when the GetProcessedImage method is invoked (before ImageProcessingFilter.Apply).

 

Please see:

Requirements

Platforms: Windows 8, Windows 7, Windows Vista, Windows XP Professional, Windows 2000 - Windows Server family: 2012, 2008.R2, 2008, 2003, 2000

See Also

©2013 Sergio Turolla. All Rights Reserved.