ios - Core Graphics gives different color -


i have strange result core graphics when draw rectangle stroke color.

- (void)drawrect:(cgrect)rect {     cgcontextref context = uigraphicsgetcurrentcontext();      cgfloat inset = 0.5 / [[uiscreen mainscreen] scale];      cgcontextsetlinewidth(context, inset);     cgcontextsetstrokecolorwithcolor(context, [uicolor colorfromhex:@"#ff9b95"].cgcolor);     cgcontextstrokerect(context, cgrectmake(border_size + inset, 0, cgrectgetwidth(rect) - 2 * border_size - 2 * inset, cgrectgetheight(rect)));      cgcontextstrokepath(context); } 

here have red color hex value #ff9b95. when save screenshot simulator , check color value in photoshop, see #ff685f , looks visually lighter original color. looks alpha value in game, don't touch it.


Comments

Popular posts from this blog

searchKeyword not working in AngularJS filter -

sequelize.js - Sequelize: sort by enum cases -

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -