about 7 years ago
Using few lines of code we can add one image over another image. It is useful when we need to add a watermark image over an image.
-(UIImage *)imageWithWaterMarkImage :(UIImage*)topImage originalImage:(UIImage*)image { CGSize size = image.size; UIGraphicsBeginImageContext( size ); [image drawInRect:CGRectMake(0,0,size.width,size.height)]; [topImage drawInRect:CGRectMake( image.size.width-topImage.size.width , image.size.height-topImage.size.height, topImage.size.width, topImage.size.height)]; // Watermark image will be added to bottom right corner UIImage* newImage = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); return newImage; }
Starting with Chrome version 45, NPAPI is no longer supported for Google Chrome. For more information, see Chrome and NPAPI (blog.chromium.org).
Firefox and Microsoft Internet Explorer are recommended browsers for websites using java applets.
Chrome Version Support
Are you sure, you want to delete this comment?
Sign up using
0 Comment(s)