I am using this code to add watermark to files.
public static void AddWaterMarkToFile(string FilePath, string password, string ImagePath)
{
using (FileStream stream = File.Open(FilePath, FileMode.Open, FileAccess.Read…...just like the (empty) parent area. Before adding a watermark you...can check the size of parent area as explained in this documentation...