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