if you want add the custom frame on image like a border then
1- Add the GPU image Third party library to your project .
2- Use the image with imagename that you want to use as border image of originanl Image.
3- Framed image will the output image for this.
 
GPUImageNormalBlendFilter *blendFilter = [[GPUImageNormalBlendFilter alloc] init];
    GPUImagePicture *imageToProcess = [[GPUImagePicture alloc] initWithImage:originalImage];
    GPUImagePicture *border = [[GPUImagePicture alloc] initWithImage:[UIImage imageNamed:imageName]];
    [imageToProcess addTarget:blendFilter];
    [border addTarget:blendFilter];
    [blendFilter useNextFrameForImageCapture];
    [imageToProcess processImage];
    [border processImage];
  UIImage *framedImage=  [blendFilter imageFromCurrentFramebuffer];
 
 
                       
                    
0 Comment(s)