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

Mockup & CodeGen, iPhone & iPad
($9.99)

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

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 09-22-2009, 06:09 AM   #21 (permalink)
wassx
Registered Member
 
Join Date: Mar 2009
Posts: 13
Default

Hi!

I'm not familiar with the GL stuff but i had a chance to do screenshots very easily with a code found on this forum:

Code:
UIGraphicsBeginImageContext(self.frame.size);
	[self.window.layer renderInContext:UIGraphicsGetCurrentContext()];
	UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();
	UIGraphicsEndImageContext();
	
	UIImageWriteToSavedPhotosAlbum(viewImage, nil, nil, nil);
My question is, how can I render the drawings of the GLPaint example without the background, just the stroke.
I implemented the code above in the touchEnded method in PaintingView and it works fine, but only renders the background with the segmented bar.

Any ideas please?

Edit: I tried various layers in the red marked code

Edit 2: sry. had no idea whats happening in the first post. Now I have. Thank you for this great example.

Last edited by wassx; 09-23-2009 at 08:19 AM. Reason: Enlightenment
wassx is offline   Reply With Quote
 

» Advertisements
» Online Users: 286
14 members and 272 guests
ADY, betterlee, BrianSlick, chits12345, dcool, JohnS., Joseph Nardone, leahov, marshusensei, NSeven, Paul10, Phi, Promo Dispenser, RoryHarvey
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,877
Threads: 89,219
Posts: 380,705
Top Poster: BrianSlick (7,129)
Welcome to our newest member, peterkessler45
Powered by vBadvanced CMPS v3.1.0

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