Sunday, 11 August 2013

lots of stickers on Photo - efficient way?


hi all..

want put whole lot - 20-70 small images / let's call them stickers on image. can adding uiimageviews. 20-70 of them per image(s) means 40 images x 70 = "c. load of views" .. seems little crazy. had planned store co-ordinates in array (and dynamically sticker them) but still lot of information.. know leave view can de-alloc them but..

there easier/more efficient way overlay bunch of "stickers"/small images on image ??? complicate; need keep original image clean.

saving image copy worth memory hogging ??? , coding efforts???

thanks
ian

ps. appreciated.. sorry if seems dumb question...
trying code better 1984 days...
 

copy image memory , composite "stickers" onto image?

can cggraphicscontext draw using coregraphics. i'd recommend uigraphicsbeginimagecontextwithoptions function size of initial image followed uigraphicsgetcurrentcontext cgcontextref draw in. composite images using drawatpoint:. note automatically handles flipped coordinate system: if use low-level cg draw have handle this. can turn cggraphicscontext cgimageref cgbitmapcontextcreateimage can turn uiimage initwithcgimage:. note there shortcut getting image context: uigraphicsgetimagefromcurrentimagecontext function.

annoying meerkat might say: simples!
 


Forums iPhone, iPad, and iPod Touch iOS Programming


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

No comments:

Post a Comment