Filestack Documentation

Class Watermark​Transform

public class WatermarkTransform: Transform  

Watermarks the image by overlaying another image on top of your main image.

WatermarkTransform WatermarkTransform Transform Transform WatermarkTransform->Transform

Superclass

Transform

:nodoc:

Initializers

init(file:​)

public init(file: String)  

Initializes a WatermarkTransform object.

Parameters

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

value Int

The size of the overlayed image as a percentage of its original size. Valid range: 1...500

position(_:​)

@discardableResult
    func position(_ value: TransformPosition) -> Self  

Adds the position option.

Parameters

value Transform​Position

The position of the overlayed image. These values can be paired as well like position: [.top, .right].