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 07-13-2010, 11:11 AM   #64 (permalink)
Balillas
Registered Member
 
Join Date: May 2010
Posts: 77
Balillas is on a distinguished road
Default

Quote:
Originally Posted by Balillas View Post
OK!!! Solved... the problem was that the const char *picture is the file name of a Picture.png that first you must include in the resources folder of the project.

How can I get a picture.png that It's stored to my Documents Directory? There is a function like CFBundleCopyResourceURL that allows to do this?

Thanks
Finally I use the UIImage that I have in a UIImageView instead of a image stored in my documents directory.

I use this code:

Code:
        // This code block will create an image that we then draw to the page
	CGImageRef *image=[imageSelected CGImage];	
        CGContextDrawImage (pdfContext, CGRectMake(200, 200, 207, 385),image);
        CGImageRelease (image);
	// End image code
The var imageSelected comes from the UIImageView.image;

Thanks again

Last edited by Balillas; 07-13-2010 at 11:13 AM.
Balillas is offline   Reply With Quote
 

» Advertisements
» Online Users: 356
11 members and 345 guests
dapis, daud18, evilmatt10, Glych002, jbro, jobsindubaiuae, KarlJay, MysticLine, Newbie123, TomTool
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,563
Threads: 94,079
Posts: 402,747
Top Poster: BrianSlick (7,990)
Welcome to our newest member, daud18
Powered by vBadvanced CMPS v3.1.0

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