If you're targeting iOS 7, then you should take a look at WWDC session 214
(Customizing Your App’s Appearance for iOS 7). It talks about using the
method on UIImage called imageWithRenderingMode:, which lets you use the
tintColor property to tint your generic images in code.
If you're targeting iO
Sent from my iPhone
> On 2013/09/30, at 11:37, Paul Scott wrote:
>
>
>> On Sep 29, 2013, at 6:54 PM, Kyle Sluder wrote:
>>
>>> How do I get an image rendered in the tint color?
>>
>> Start a bitmap context, set your template image as the image mask, set the
>> full color to the appropriat
On Sep 29, 2013, at 7:37 PM, Paul Scott wrote:
>
> On Sep 29, 2013, at 6:54 PM, Kyle Sluder wrote:
>>
>>> How do I get an image rendered in the tint color?
>>
>> Start a bitmap context, set your template image as the image mask, set the
>> full color to the appropriate tintColor, and fill th
On Sep 29, 2013, at 6:54 PM, Kyle Sluder wrote:
>
>> How do I get an image rendered in the tint color?
>
> Start a bitmap context, set your template image as the image mask, set the
> full color to the appropriate tintColor, and fill the bounds of the context.
>
> Construct a data URI out of
> On Sep 29, 2013, at 5:01 PM, Paul Scott wrote:
>
> So, I successfully update the image src attribute within the UIWebView page
> using imageWithRederingMode:UIImageRederingModeAlwaysTemplate. However, the
> image appears "unrendered" with the tint color. Why?
Because you misunderstand how t
So, I successfully update the image src attribute within the UIWebView page
using imageWithRederingMode:UIImageRederingModeAlwaysTemplate. However, the
image appears "unrendered" with the tint color. Why? How do I get an image
rendered in the tint color?
UIImage *image = [controller.infoIco
I suppose I could try using stringByEvaluatingJavaScriptFromString: to insert
the raw template-rendered image data into the web page with the Data URI
scheme. The images are fairly small, so that seems doable, but if there's an
easier way, I'd choose that path.
Paul
On Sep 29, 2013, at 2:55 PM
Now, I'm wondering if there's a way to get UIWebView to apply tint color to an
image URL, via some extension?
I would like my UIWebView-based app help — which references the app's images —
to dynamically adopt the same tint color as the rest of the app, without
resorting to saving the template-
Indeed, it is.
On Sep 29, 2013, at 2:51 PM, Eric E Dolecki wrote:
> Must be a PNG no?
>
>> On Sep 29, 2013, at 5:16 PM, Alex Zavatone wrote:
>>
>> There are many kinds of image files. Which kind is it?
>>
>>> On Sep 29, 2013, at 4:15 PM, Paul Scott wrote:
>>>
>>> I have an image file—creat
Must be a PNG no?
> On Sep 29, 2013, at 5:16 PM, Alex Zavatone wrote:
>
> There are many kinds of image files. Which kind is it?
>
>> On Sep 29, 2013, at 4:15 PM, Paul Scott wrote:
>>
>> I have an image file—created in Photoshop, anti-aliasd against a transparent
>> background—that I would l
There are many kinds of image files. Which kind is it?
On Sep 29, 2013, at 4:15 PM, Paul Scott wrote:
> I have an image file—created in Photoshop, anti-aliasd against a transparent
> background—that I would like colorized using the same tint color used in the
> navigation bar. Is there a way t
Thanks, guys! That did the trick; exactly what I needed for iOS 7 app update,
and so simple!
I will watch session 214 to garner what other gems might have been presented.
I *did* read the iOS 7 UI Transition Guide—which I just now verified discusses
UIImageRenderingModeAlwaysTemplate—but someh
I have an image file—created in Photoshop, anti-aliasd against a transparent
background—that I would like colorized using the same tint color used in the
navigation bar. Is there a way to colorize this pre-drawn image
programmatically?
--
Paul Scott
psc...@skycoast.us
smime.p7s
Description:
13 matches
Mail list logo