BuildWatermark (width, height, rSrcImgPath, rMarkImgPath, rMarkText, = phWidth = phHeight =, Bitmap bmWatermark = ImageAttributes imageAttributes = Color. fromArgb (, = Color. fromArgb (, = [] [] colorMatrixElements = [] {, [] {, [] {, [] {, = Image imgWatermark = wmWidth = wmHeight = grPhoto. smoothingMode = SolidBrush (Color. white), = Rectangle (, (imgPhoto. width <width & imgPhoto. height <= Rectangle (phWidth-imgPhoto. width)/, (phHeight-imgPhoto. height)/= Rectangle (, (phWidth <= phWidth-= (markWidth * wmHeight)/(phHeight <= phHeight-= (markHeight * wmWidth) // = xPosOfWm = (phWidth-markWidth)-yPosOfWm = watermark text adjustment [] sizes = [] {, = (I =; I <; I ++ = Font (= () crSize. width <(yPixlesFromBottom = () (phHeight *. yPosFromBottom = (Random (). next (xCenterOfImg = (Random (). next (= SolidBrush semiTransBrush2 = SolidBrush (Color. fromArgb (,); PointF (xCenterOfImg +, yPosFromBottom + =, imgPhoto =