Image.

OutputAs(Action<Image, Stream>, Func<FilePath, FilePath>) Method

Summary

Allows you to specify an alternate output format for the image. For example, you might use this if you want to full specify the encoder and it's properties. This will override the default behavior of outputting the image as the same format.
Assembly
Wyam.Images.dll
Namespace
Wyam.Images
Containing Type
Image

Syntax

public Image OutputAs(Action<Image, Stream> action, Func<FilePath, FilePath> pathModifier = null)

Parameters

Name Type Description
action Action<Image, Stream> An action that should write the provided image to the provided stream.
pathModifier Func<FilePath, FilePath> Modifies the destination path after applying the operation (for example, to set the extension).

Return Value

Type Description
Image The current module instance.
GitHub