iphone - image optimization reduce the loading time? -
today messed uiimageview. tried add (15.5mb)sized image uiimageview. using uigraphicsbeginimagecontext added image(process bit slow because of large sized image).
after tried change brightness , contrast of image using thiscode
because of large image size, filters working bit :-<.
i worried loading time taken.
now have question, image optimisation reduces time taken process?? know reduce size of image. reduce time taken loading image uiimageview?
try one....
uiimage *originalimage = ...; cgsize destinationsize = ...; uigraphicsbeginimagecontext(destinationsize); [originalimage drawinrect:cgrectmake(0,0,destinationsize.width,destinationsize.height)]; uiimage *newimage = uigraphicsgetimagefromcurrentimagecontext(); uigraphicsendimagecontext();
Comments
Post a Comment