DLCImagePickerController icon indicating copy to clipboard operation
DLCImagePickerController copied to clipboard

Having difficulties with using images

Open MattW86 opened this issue 11 years ago • 0 comments

Hello,

I am having difficulties to use images within the DLCImagePickerController. For example I am trying to add an image to filtersBackgroundImageView. There is no image showing. Can you please help me? Thanks..

    GPUImageOutput<GPUImageInput> *processUpTo;

    if (hasBlur) {
        processUpTo = blurFilter;
    } else {
        processUpTo = filter;
    }

    [staticPicture processImage];

    UIImage *currentFilteredVideoFrame = [processUpTo imageFromCurrentlyProcessedOutputWithOrientation:staticPictureOriginalOrientation];


    UIImageView *iv = [[UIImageView alloc] initWithFrame:CGRectMake(3, 3, 10, 10)];
    iv.image = [UIImage imageWithData:UIImageJPEGRepresentation(currentFilteredVideoFrame, self.outputJPEGQuality)];
    [self.filtersBackgroundImageView addSubview:iv];


    NSDictionary *info = [[NSDictionary alloc] initWithObjectsAndKeys:
                          UIImageJPEGRepresentation(currentFilteredVideoFrame, self.outputJPEGQuality), @"data", nil];
    [self.delegate imagePickerController:self didFinishPickingMediaWithInfo:info];

MattW86 avatar Aug 13 '13 09:08 MattW86