Tuesday, April 23, 2013

Creating Watermarked Images from iOS app

Hello Guyz, In this section i will give you a bunch of code for creating a watermarked images. For example: Images with copyright text on top of it.  It sounds difficult but believe me, I have a really simple solution for you. In this part,  I am only merging  two of the images (one is watermark image and another is the image in which you want to put watermark) and hence making them one. So before we proceed, remember you should have watermark image and main image(picture) in your project resources.

-(UIImage *) generateWatermarkForImage:(UIImage *) mainImg{
      UIImage *backgroundImage = mainImg;
    UIImage *watermarkImage = [UIImage imageNamed:@"watermark.png"];