sto cercando di cancellare l'immagine utilizzando seguente codicedrawInRect: perdere la qualità della risoluzione dell'immagine
CGColorRef strokeColor = [UIColor whiteColor].CGColor;
UIGraphicsBeginImageContext(imgForeground.frame.size);
CGContextRef context = UIGraphicsGetCurrentContext();
[imgForeground.image drawInRect:CGRectMake(0, 0, imgForeground.frame.size.width, imgForeground.frame.size.height)];
CGContextSetLineCap(context, kCGLineCapRound);
CGContextSetLineWidth(context, 10);
CGContextSetStrokeColorWithColor(context, strokeColor);
CGContextSetBlendMode(context, kCGBlendModeClear);
CGContextBeginPath(context);
CGContextMoveToPoint(context, lastPoint.x, lastPoint.y);
CGContextAddLineToPoint(context, currentPoint.x, currentPoint.y);
CGContextStrokePath(context);
imgForeground.image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
Ma ho appena scoprire Immagine perdere la sua risoluzione a causa di drawInRect.
Caricamento del "prima" e "dopo" le immagini screenshot sarebbe di grande aiuto per una questione che coinvolge grafica. – dasblinkenlight
Immagine caricata Si prega di fare riferimento a –
Non è chiaro cosa intendi per "perdita di qualità della risoluzione dell'immagine". Forse potresti provare ad essere un po 'più specifico. – ipmcc