// // IHColorPickerView.m // Inhealth // // Created by weclouds on 2020/4/17. // Copyright © 2020 weclouds. All rights reserved. // #import "IHColorPickerView.h" #import "HSBSupport.h" @interface IHColorPickerView() @end @implementation IHColorPickerView -(void)drawRect:(CGRect)rect{ float hsv[] = {0.0,1.0,1.0}; CGImageRef image = createHSVBarContentImage(InfComponentIndexHue,hsv); if (image) { CGContextRef ctx = UIGraphicsGetCurrentContext(); CGContextDrawImage(ctx, rect, image); CGImageRelease(image); } } @end