protected override void LoadImageProcessingActions(ImageProcessingActionLoadArgs args) { // Filter #1 args.LoadImageProcessingActions(new FixedCropConstraint(300, 200)); // Filter #2 TextWatermark watermark = new TextWatermark(this.Text, ContentAlignment.TopCenter); watermark.Font.Size = 12; watermark.ForeColor = Color.Black; args.LoadImageProcessingActions(watermark); // Filter #3 args.LoadImageProcessingActions(DefaultColorFilters.Sepia); }
protected override void LoadImageProcessingActions(ImageProcessingActionLoadArgs args) { // Filter #1 args.LoadImageProcessingActions(new FixedCropConstraint(300, 200)); // Filter #2 TextWatermark watermark = new TextWatermark(this.Text, ContentAlignment.TopCenter); watermark.Font.Size = 12; watermark.ForeColor = Color.Black; args.LoadImageProcessingActions(watermark); // Filter #3 args.LoadImageProcessingActions(DefaultColorFilters.Sepia); }