Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 10-08-2008, 06:25 PM   #26 (permalink)
filharvey
New Member
 
Join Date: Sep 2008
Posts: 4
filharvey is on a distinguished road
Default EaglView ScreenShot

k, I'm trying the code suggested on a eaglView, but only getting a white image.

Quote:
CGRect screenRect = [[UIScreen mainScreen] bounds];
UIGraphicsBeginImageContext(screenRect.size);

CGContextRef ctx = UIGraphicsGetCurrentContext();
[glView.layer renderInContext:ctx];

UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();

UIImageWriteToSavedPhotosAlbum(viewImage, self, nil, nil);
So it saves an image, but the image is just white, not the opengl scene I've rendered.

Thanks in advance for any help.

Phil
filharvey is offline   Reply With Quote
 

» Advertisements
» Online Users: 360
11 members and 349 guests
2Apps1Day, Bryan1, dineshprasanna, Domele, evilmatt10, flamingliquid, Miliguel1, mutank, Newbie123, nguyenhieu129, NSString
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,565
Threads: 94,081
Posts: 402,750
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Miliguel1
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 10:54 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.