FLIR One Developer / Blog / Topics / Saving Photos

Saving Photos

This topic contains 4 replies, has 4 voices, and was last updated by Profile photo of Mark Mark 9 months, 1 week ago.

Viewing 5 posts - 1 through 5 (of 5 total)

  • Author

    Posts

  • #5341

    Profile photo of Saket
    Saket

    Participant

    I followed https://developer.flir.com/wp-content/uploads/2015/06/FLIR-One-QuickStart-Tutorial.pdf<br />
    Now, I want to save a photo directly to the Iphone’s photo library. If I use [FLIROneSDKStreamManager capturePhotoWithFilepath:]; what should the filePath be? or is there another way to do this?</p>
    <p>Thanks

    • This topic was modified 2 years, 5 months ago by Profile photo of Saket Saket.

    #5343

    Profile photo of Peisen
    Peisen

    Moderator

    The following function should work in saving photos directly to the iOS camera roll.

    UIImageWriteToSavedPhotosAlbum(UIImage *image,
    id completionTarget,
    SEL completionSelector,
    void *contextInfo);

    source: https://stackoverflow.com/questions/178915/how-to-save-picture-to-iphone-photo-library

    #5344

    Profile photo of Saket
    Saket

    Participant

    Ok thank you. I guess the problem i am having is creating a UIImage of the UIImageView when I hit a button.

    #5991

    Profile photo of Dominique
    Dominique

    Moderator

    Hi Saket,

    Were you able to get this to work?

    Thank you,
    Dominique Strauss

    #8261

    Profile photo of Mark
    Mark

    Participant

    Hope this helps:
    I used a glkView instead. (see the FLIROneSDKExample where this is implemented)

    make the glkview:
    [FLIROneSDKStreamManager sharedInstance].glkView = self.glkView;

    when capturing

    UIImage* myImage = [self.glkView snapshot];
        UIImageWriteToSavedPhotosAlbum(myImage, nil, nil, nil);

    Hope that helps some folks

    • This reply was modified 9 months, 1 week ago by Profile photo of Mark Mark.
    • This reply was modified 9 months, 1 week ago by Profile photo of Mark Mark.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.