Stroke Effect With Color Fill

Stroke Effect With Color Fill

This article demonstrates how to render stroke effect with color fill. The Stroke effect is used to add strokes and borders to layers and shapes. It can be used to create solid-color lines, colorful gradients, as well as patterned borders.

The steps to render Stroke effect with Color fill are as simple as below:

  • Set LoadEffectsResource property.
  • Load a PSD file as an image using the factory method Load exposed by Image class and define PsdLoadOptions.
  • Set settings properties of ColorFillSetting.
  • Save the results.

The following code snippet shows you how to render Stroke effect with Color fill.