ios - Change Face Color From main color in xcode -
i work on application in ios , need tool or code change face color of image .
i face in uiimage.
now how apply rgb color change uiimage of face?
thanks in advance
you can this,
uiimageview *imageview = [[uiimageview alloc]initwithframe:cgrectmake(50, 50, 50, 50)]; imageview.image = [uiimage imagenamed:@"synch"]; // face image here imageview.image = [imageview.image imagewithrenderingmode:uiimagerenderingmodealwaystemplate]; // imageview.backgroundcolor = [uicolor yellowcolor]; imageview.tintcolor = [uicolor redcolor]; // set different tint color here , image color [self.view addsubview:imageview];
image should png
file. synch image in png format in example.
hope :)
Comments
Post a Comment