How to get ImageView Pixel UIColor in iOS
How to get ImageView Pixel UIColor in iOS
Hi,
This is a code to get the particular CGPoint pixel UIColor in UIImageView in iOS
USE THIS CODE
- (UIColor *)colorAtPoint:(CGPoint)pixelPoint { if (pixelPoint.x > self.ImageView.frame.size.width || pixelPoint.y > self.ImageView.frame.size.height) { return nil; } CGDataProviderRef provider = CGImageGetDataProvider(self.ImageView.image.CGImage); CFDataRef…
View On WordPress














