ios - Creating artificially higher colors / color-spaces -


i have ios app makes images used in else's app on appstore allows users upload images.

the problem overlay on image black 10% visibility (alpha = 0.1) (a light light light grey)... if want image appear white create blank image 255,255,255 rgb (aka 1.0f, 1.0f, 1.0f) once it's uploaded light grey overlay goes ontop of , iphone display merges pixels while rendering 90% white , 10% black. light grey color instead of white... i'm thinking if can create super white (the actual data of image file says color given pixel 300, 300, 300 instead of current max (255,255,255) .. when ios tries render it, overlay algorithm , overlay black 10% (which subtracts rgb values... final value (although less 300,300,300 still above 255,255,255 , appear white.)

i have feeling involve editing actual data of png file? work? there better way this? thanks!

you cannot. 255-per-channel maximum not arbitrary number. in standard 24-bit color (8 bits per channel, red, green, , blue), maximum can store each channel 8 bit number, i.e. values between 0 , 255. doesn't make sense try use value greater 255.

if app dimming images, cannot whites. there no "superwhite".

the best can ask author of other app offer ability somehow disable/diminish dimming overlay.


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -