Class
WatermarkTransform
public class WatermarkTransform: Transform
Watermarks the image by overlaying another image on top of your main image.
Relationships
Superclass
Transform
:nodoc:
Initializers
init(file:)
public init(file: String)
Initializes a WatermarkTransform
object.
Parameters
Name | Type | Description |
---|---|---|
file | String |
The Filestack handle of the image that you want to layer on top of another image as a watermark. |
Methods
size(_:)
@discardableResult
func size(_ value: Int) -> Self
Adds the size
option.
Parameters
Name | Type | Description |
---|---|---|
value | Int |
The size of the overlayed image as a percentage of its original size. Valid range: |
position(_:)
@discardableResult
func position(_ value: TransformPosition) -> Self
Adds the position
option.
Parameters
Name | Type | Description |
---|---|---|
value | TransformPosition |
The position of the overlayed image. These values can be paired as well like position: [.top, .right]. |