Find Jobs
Hire Freelancers

data entry work

₹12500-37500 INR

Κλειστή
Αναρτήθηκε περίπου 9 χρόνια πριν

₹12500-37500 INR

Πληρωμή κατά την παράδοση
How to take an image snapshot of the screen on Mac OS X Lion Q: How do I take an image snapshot of the screen on Mac OS X Lion? A: On Mac OS X Lion, the way to make an image snapshot from the screen is by employing Quartz Display Services. Important: This Q&A describes how to capture static images. If you want to capture real-time videos of screen activity, you should use AV Foundation instead. See How to capture screen activity to a movie file using AV Foundation on OS X 10.7 Lion and later for more information. Make sure you add the ApplicationServices framework in your Xcode project and import the ApplicationServices/ApplicationServices.h header file. Given a display ID (of CGDirectDisplayID type), you can call CGDisplayCreateImage to create a CGImage from the entire screen or CGDisplayCreateImageForRect from a rectangular portion of it. If you always capture from the main display, you may simply pass kCGDirectMainDisplay to either function as shown in Listing 1. It is a shorthand for specifying the current main display. If you might capture from a secondary display, then you can go through the list of active displays returned from CGGetActiveDisplayList and find the one you want to capture. See Listing 2 for an example. Listing 1 Creating an image from the entire main display CGImageRef image = CGDisplayCreateImage(kCGDirectMainDisplay); Listing 2 Creating images from multiple displays CGDisplayCount displayCount; CGDirectDisplayID displays[32]; // grab the active displays CGGetActiveDisplayList(32, displays, &displayCount); // go through the list for (int i=0; i<displayCount; i++) { // make a snapshot of the current display CGImageRef image = CGDisplayCreateImage(displays[i]); // do something with the snapshot image } Check out the dedicated sample code, ScreenSnapshot, for more information. It demonstrates how to use Quartz Display Services to obtain an image containing the contents of any of the connected displays and allows the user to save the image to a file on disk. Document Revision History Date Notes 2011-08-10 Corrected a link. Added information about the ScreenSnapshot sample. 2011-05-13 New document that shows how to take an image snapshot of the screen on Mac OS X Lion
Ταυτότητα εργασίας: 7897632

Σχετικά με την εργασία

3 προτάσεις
Απομακρυσμένη Εργασία
Ενεργός/ή 9 χρόνια πριν

Ψάχνεις τρόπο για να κερδίσεις μερικά χρήματα;

Πλεονεκτήματα πλειοδοσίας στο Freelancer

Καθόρισε τον προϋπολογισμό σου και το χρονοδιάγραμμα
Πληρώσου για τη δουλειά σου
Περίγραψε την πρόταση σου
Η εγγραφή και η πλειοδοσία σε εργασίες είναι δωρεάν
3 freelancers δίνουν μια μέση προσφορά ₹22.962 INR για αυτή τη δουλειά
Avatar Χρήστη
A proposal has not yet been provided
₹13.333 INR σε 15 ημέρες
0,0 (0 αξιολογήσεις)
0,0
0,0
Avatar Χρήστη
A proposal has not yet been provided
₹27.777 INR σε 10 ημέρες
0,0 (0 αξιολογήσεις)
0,0
0,0
Avatar Χρήστη
A proposal has not yet been provided
₹27.777 INR σε 10 ημέρες
0,0 (0 αξιολογήσεις)
0,0
0,0

Σχετικά με τον πελάτη

Σημαία της INDIA
India
0,0
0
Μέλος από Μαΐ 5, 2015

Επαλήθευση Πελάτη

Ευχαριστούμε! Σου έχουμε στείλει ένα email με ένα σύνδεσμο για να διεκδικήσεις τη δωρεάν πίστωση σου.
Κάτι πήγε στραβά κατά την προσπάθεια αποστολής του email σου. Παρακαλούμε δοκίμασε ξανά.
Εγγεγραμμένοι Χρήστες Συνολικές Αναρτημένες Δουλειές
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Φόρτωση προεπισκόπησης
Δόθηκε πρόσβαση για Geolocation.
Η σύνδεση σου έχει λήξει και τώρα έχεις αποσυνδεθεί. Παρακαλούμε συνδέσου ξανά.