strength($strength)->preserveColor($preserveColor); } /** * Determines whether the original colors of the target photo are kept. * * @param bool $preserveColor When true, style elements of the source artwork, such as brush style and texture, * are transferred to the target photo, but the prominent colors from the source * artwork are not transferred, so the result retains the original colors of the * target photo. * * @return StyleTransferQualifier */ public function preserveColor($preserveColor) { $this->value->setSimpleValue('preserve_color', $preserveColor ? 'preserve_color' : null); return $this; } /** * Sets the strength of the style transfer. * * @param int $strength The strength of the style transfer. Higher numbers result in an output that is more * highly influenced by the source artwork style. (Range: 0 to 100, Server default: * 100) * * @return StyleTransferQualifier */ public function strength($strength) { $this->value->setSimpleValue('style_strength', $strength); return $this; } }