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