Find Jobs
Hire Freelancers

data entry work

₹12500-37500 INR

Fechado
Publicado há quase 9 anos

₹12500-37500 INR

Pago na entrega
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
ID do Projeto: 7897632

Sobre o projeto

3 propostas
Projeto remoto
Ativo há 9 anos

Quer ganhar algum dinheiro?

Benefícios de ofertar no Freelancer

Defina seu orçamento e seu prazo
Seja pago pelo seu trabalho
Descreva sua proposta
É grátis para se inscrever e fazer ofertas em trabalhos
3 freelancers estão ofertando em média ₹22.962 INR for esse trabalho
Avatar do Usuário
A proposal has not yet been provided
₹13.333 INR em 15 dias
0,0 (0 avaliações)
0,0
0,0
Avatar do Usuário
A proposal has not yet been provided
₹27.777 INR em 10 dias
0,0 (0 avaliações)
0,0
0,0
Avatar do Usuário
A proposal has not yet been provided
₹27.777 INR em 10 dias
0,0 (0 avaliações)
0,0
0,0

Sobre o cliente

Bandeira do(a) INDIA
India
0,0
0
Membro desde mai. 5, 2015

Verificação do Cliente

Obrigado! Te enviamos um link por e-mail para que você possa reivindicar seu crédito gratuito.
Algo deu errado ao enviar seu e-mail. Por favor, tente novamente.
Usuários Registrados Total de Trabalhos Publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Carregando pré-visualização
Permissão concedida para Geolocalização.
Sua sessão expirou e você foi desconectado. Por favor, faça login novamente.