Posted By

iswear_wxp on 01/05/10


Tagged

UIImage NSData


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

davidsi
bobbym245


UIImage to NSData


 / Published in: iPhone
 

URL: http://lovebirdegg.javaeye.com/blog/558830

  1. PNG格式的图片:
  2. UIImage *image.....;
  3. NSData *imageData = UIImagePNGRepresentation(image,1.0);
  4.  
  5. JEPG格式的图片:
  6. UIImage *image.....;
  7. NSData *imageData = UIImageJEPGRepresentation(image);

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: trawor on March 9, 2010

这儿也能找到你 哈哈~~

You need to login to post a comment.