ios - pixelated iphone UIImageView -
i've been having issues rendering images uiimageview class. pixelation seems occur on edges of image trying show.
i have tried changing property 'render edge antialiasing' no avail.
the image files contain images larger appear on screen.
it seems royally messing quality of image , displaying it. tried post images here, stackoverflow denying me privilege. here's link what's going on.
http://i.imgur.com/qpuotof.png
the sun in image problem i'm speaking of. ideas?
on-the-fly image resizing quick , of low quality. bundled images, worth bundle space include downsized versions. downloaded images, can achieve better results resizing core graphics new uiimage
before set image property.
cgsize newsize = cgsizemake(newwidth, newheight); uigraphicsbeginimagecontextwithoptions(newsize, // context size no, // opaque? 0); // image scale. 0 means "device screen scale" cgcontextref context = uigraphicsgetcurrentcontext(); cgcontextsetinterpolationquality(context, kcginterpolationhigh); [bigimage drawinrect:cgrectmake(0, 0, newsize.width, newsize.height)]; uiimage *newimage = uigraphicsgetimagefromcurrentimagecontext(); uigraphicsendimagecontext();
Comments
Post a Comment