iOS, Swift, Image Processing.
transparency(with opacity). so we need to enable the opacity in “UIGraphicsBeginImageContextWithOptions” method like below: UIGraphicsBeginImageContextWithOptions(size, true, scaleFactor) And Use the method “draw(in: blendMode: alpha:)” with blend mode and alpha value for transparency instead of