Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9137417
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:06:03+00:00 2026-06-17T09:06:03+00:00

I would like to take the image that is on my iPad’s screen and

  • 0

I would like to take the image that is on my iPad’s screen and export it as a JPG, PNG or PDF file.

In simpler terms, the user created something on the screen, he clicks ‘export to PNG’ for example, and then a PNG file is created.

How do I go about doing that?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T09:06:04+00:00Added an answer on June 17, 2026 at 9:06 am

    I wrote this category for UIView, taken with some help from unremembered sources:

    @interface UIView (Rendering)
    
    + (UIImage *)renderImageFromLayer:(CALayer *)layer withRect:(CGRect)frame;
    - (UIImage *)renderImageWithRect:(CGRect)frame;
    
    @end
    
    @implementation UIView (Rendering)
    
    + (UIImage *)renderImageFromLayer:(CALayer *)layer withRect:(CGRect)frame
    {
        // Create a new context of the desired size to render the image
        UIGraphicsBeginImageContextWithOptions(frame.size, YES, 1.0);
        CGContextRef context = UIGraphicsGetCurrentContext();
    
        // Translate it, to the desired position
        CGContextTranslateCTM(context, -frame.origin.x, -frame.origin.y);
    
        // Render the view as image
        [layer renderInContext:context];
    
        // Fetch the image
        UIImage *renderedImage = UIGraphicsGetImageFromCurrentImageContext();
    
        // Cleanup
        UIGraphicsEndImageContext();
    
        return renderedImage;
    }
    
    - (UIImage *)renderImageWithRect:(CGRect)frame
    {
        return [UIView renderImageFromLayer:self.layer withRect:frame];
    }
    
    @end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using Flex 3, I would like to take an image snapshot such as this:
I would like to take a field and replace all characters that are not
I would like to take the words of a sentence, if that word has
What I would like to take ownership of a hid device that may already
In the app I am making, I would like to take a Base64 image
I would like to replace an image element of SVG tag. I want that
I would like to take a picture in such a way that no user
Cut to the chase... I'd like to take a local image file, use javascript
I would like javascript detect the source of the image and take action regarding
I'm getting a CVImageBufferRef from my AVCaptureSession, and I'd like to take that image

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.