This Specification Macro Task will convert an image to greyscale.
Property Name | Description |
---|---|
Title | Changes the Title (not the name) of the Task. |
Source | The Full File Path and Name of the Source image file to transform, including its extension |
Destination | The Full File Path and Name of the image file to create, including its extension. |
Constant Name | The name of the Constant used to report on the success of the Task. If it is a success this will be used to store the Path of the generated image. |
Overwrite | TRUE to overwrite an existing image, FALSE to keep the existing image. |
When this Task is added the properties are static. To be able to build rules on a static properties see How To: Change A Static Property To A Dynamic Property.
Property Name | Example Rule | Example Result | Meaning |
---|---|---|---|
Source | "C:\MyDocuments\Content\Images\WorldGraphic.png" | C:\MyDocuments\Content\Images\WorldGraphic.png | This is the Full File Path and Name including extension to the source file to use. |
Destination | FsGetFullPath("<Specification>\ConvertedWorldGraphic.png") | C:\MyDocuments\Projects\Specifications\Spec 9999\ConvertedWorldGraphic.png | This is the location where the new file will be created. |
Constant Name | "DWConstantReport" | DWConstantReport | This is the name of the Constant that the Task will report to. |
Overwrite | TRUE | TRUE | TRUE will overwrite the file if it exists FALSE will not. |
This is the source image that will be used.
The result shows the created image using the source image and transforming it into greyscale.