Re: Transparent Image with Tint Color

2013-09-29 Thread dangerwillrobinsondanger
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

Re: Transparent Image with Tint Color

2013-09-29 Thread Kyle Sluder
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

Re: Transparent Image with Tint Color

2013-09-29 Thread Paul Scott
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

Re: Transparent Image with Tint Color

2013-09-29 Thread Kyle Sluder
> 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

Re: Transparent Image with Tint Color

2013-09-29 Thread Paul Scott
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

QLPreviewController - Implementation as in DocInteraction sample

2013-09-29 Thread Devarshi Kulshreshtha
I have a tab bar based app,on tap of each tab bar item, I am showing a navigation controller. In root view controller, I am showing a list of files. Once user taps a row, I am pushing a UIViewController. So content area appears between the navigation bar and the tab bar. I am trying to integrate t

Re: Transparent Image with Tint Color

2013-09-29 Thread Paul Scott
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

Re: Transparent Image with Tint Color

2013-09-29 Thread Paul Scott
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-

Re: Transparent Image with Tint Color

2013-09-29 Thread Paul Scott
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

Re: Transparent Image with Tint Color

2013-09-29 Thread Eric E Dolecki
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

Re: Transparent Image with Tint Color

2013-09-29 Thread Alex Zavatone
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

Re: Transparent Image with Tint Color

2013-09-29 Thread Paul Scott
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

Transparent Image with Tint Color

2013-09-29 Thread Paul Scott
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:

Re: Identify extension of a file without extension

2013-09-29 Thread dangerwillrobinsondanger
Yep most common file types are covered by the magic file, though there are a ton of types, and many are identified by different means whether a byte sequence in an established location or a string or otherwise. The more control you have over what files you receive over the wire, in what order