Re: Transparent Image with Tint Color

2013-10-04 Thread Cai Durbin
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

Re: Transparent Image with Tint Color

2013-09-30 Thread dangerwillrobinsondanger
Sent from my iPhone On 2013/09/30, at 11:37, Paul Scott psc...@skycoast.us wrote: On Sep 29, 2013, at 6:54 PM, Kyle Sluder k...@ksluder.com 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

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: 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

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 to

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 z...@mac.com 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

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 edole...@gmail.com wrote: Must be a PNG no? On Sep 29, 2013, at 5:16 PM, Alex Zavatone z...@mac.com 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

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

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

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 =

Re: Transparent Image with Tint Color

2013-09-29 Thread Kyle Sluder
On Sep 29, 2013, at 5:01 PM, Paul Scott psc...@skycoast.us 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

Re: Transparent Image with Tint Color

2013-09-29 Thread Paul Scott
On Sep 29, 2013, at 6:54 PM, Kyle Sluder k...@ksluder.com 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

Re: Transparent Image with Tint Color

2013-09-29 Thread Kyle Sluder
On Sep 29, 2013, at 7:37 PM, Paul Scott psc...@skycoast.us wrote: On Sep 29, 2013, at 6:54 PM, Kyle Sluder k...@ksluder.com 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

Re: Transparent Image

2009-02-12 Thread Benjamin Dobson
On 12 Feb 2009, at 04:37:35, Michael Ash wrote: On Wed, Feb 11, 2009 at 3:41 PM, Christian Graus christian.gr...@gmail.com wrote: Please file a bug and request this functionality. OK - that would not have occurred to me at all. That works in the Mac world ? Awesome !! I've found plenty of

Re: Transparent Image

2009-02-12 Thread Corbin Dunn
On Feb 11, 2009, at 8:37 PM, Michael Ash wrote: On Wed, Feb 11, 2009 at 3:41 PM, Christian Graus christian.gr...@gmail.com wrote: Please file a bug and request this functionality. OK - that would not have occurred to me at all. That works in the Mac world ? Awesome !! I've found plenty of

Re: Transparent Image

2009-02-12 Thread Michael Ash
On Thu, Feb 12, 2009 at 5:48 PM, Corbin Dunn corb...@apple.com wrote: For what it's worth, filing bugs is *very* worthwhile. It lets Apple know what issues are important to developers and what problems they are encountering. Logging duplicates is also fine, as it gives us an idea of what

Re: Transparent image

2009-02-11 Thread Rob Keniger
On 11/02/2009, at 5:11 AM, Christian Graus wrote: Thanks - that's pretty much what I am going to do. I will move the objects that need transparency to NSImageView today, and then once we get this version out for demo purposes, I will start rewriting the tools I needed from IKImageView.

Re: Transparent Image

2009-02-11 Thread Christian Graus
Please file a bug and request this functionality. OK - that would not have occurred to me at all. That works in the Mac world ? Awesome !! I've found plenty of Microsoft bugs, and I was even an MVP at the time, they always ignored me, or told me they were features ( and I found some MAJOR bugs

Re: Transparent Image

2009-02-11 Thread Mike Abdullah
Don't get your hopes up too much, plenty of issues remain unsolved for looong periods of time. You want http://bugreport.apple.com On 11 Feb 2009, at 20:41, Christian Graus wrote: Please file a bug and request this functionality. OK - that would not have occurred to me at all. That works in

Re: Transparent Image

2009-02-11 Thread Christian Graus
Thank you. The number is *6578276.*https://bugreport.apple.com/cgi-bin/WebObjects/RadarWeb.woa/85/wo/n3gbesxSHOpLghGqW9p2I0/8.34 On Thu, Feb 12, 2009 at 9:57 AM, Kyle Sluder kyle.slu...@gmail.com wrote: http://bugreport.apple.com Then make sure to post the bug number here. --Kyle Sluder

Re: Transparent Image

2009-02-11 Thread Christian Graus
Yeah, I'm sure this is not going to come in time to solve the issue for my project, but still, it's nice to think that it may get addressed at some point. On Thu, Feb 12, 2009 at 10:17 AM, Mike Abdullah cocoa...@mikeabdullah.netwrote: Don't get your hopes up too much, plenty of issues remain

Re: Transparent Image

2009-02-11 Thread Michael Ash
On Wed, Feb 11, 2009 at 3:41 PM, Christian Graus christian.gr...@gmail.com wrote: Please file a bug and request this functionality. OK - that would not have occurred to me at all. That works in the Mac world ? Awesome !! I've found plenty of Microsoft bugs, and I was even an MVP at the time,

Re: Transparent image

2009-02-10 Thread Christian Graus
OK - I've overridden isOpaque and I am returning NO. This method is being called, so I am sure I've done that bit right. In the same code, I added code to set the background color to clearColor ( net result is that the background is black ) or used the code you gave me earlier ( net result is,

Re: Transparent Image

2009-02-10 Thread Christian Graus
The IKImageView and IKImageBrowserView do some pretty funky stuff under the hood and don't support background or image transparency as far as I am tell. Subclassing them and overriding the drawing methods causes nothing but pain, believe me. OK - so you're saying that the IKImageView is

Re: Transparent image

2009-02-10 Thread Christian Graus
Thanks - that's pretty much what I am going to do. I will move the objects that need transparency to NSImageView today, and then once we get this version out for demo purposes, I will start rewriting the tools I needed from IKImageView. Shame, really, I've wasted days on IKImageView. The docs

Transparent image

2009-02-09 Thread Christian Graus
Hi guys I have a window with an image showing on it. Above this I have a window, which contains an IKImageView derived class. The IKImageView has a PNG in it, which has a transparency layer. What I need to do, is to make that image appear above the image I have in my main window, that is, the

Re: Transparent image

2009-02-09 Thread Steve Christensen
Something similar to what you're asking was discussed on this list last week. To get you started: [window setOpaque:NO]; [window setBackgroundColor:[NSColor colorWithCalibratedWhite:1.0 alpha:0.5]]; On Feb 9, 2009, at 1:55 PM, Christian Graus wrote: I have a window with an image showing

Re: Transparent image

2009-02-09 Thread Christian Graus
Thanks - I've been trying to use NSColor clearColor, and that's not worked at all, I'll give this a go. On Tue, Feb 10, 2009 at 9:18 AM, Steve Christensen puns...@mac.com wrote: Something similar to what you're asking was discussed on this list last week. To get you started: [window

Re: Transparent image

2009-02-09 Thread Christian Graus
I'm sorry, I'm not sure that I'm following this. Looking at it more closely, on the side I want this behaviour, it's just an IKImageView derived class on top of a window. So, I just need to make the IKImageView show the image, transparently. I've tried setting the Opaque setting, but it doesn't

Re: Transparent image

2009-02-09 Thread Steve Christensen
Sorry, I misread your original posting. You're trying to make the view transparent, not the window. Based on what you're seeing when you set the view's backgroundColor, it looks like the alpha component is being ignored. I would guess that either the IKImageView only supports an opaque

Re: Transparent image

2009-02-09 Thread Christian Graus
Yes - the interesting thing is, if I turn the grid on for the IKImageView, it is plainly well able to recognise the transparency layer in my PNG and render accordingly. We are overriding IKImageView already, although we're not yet doing anything funky at all, just adding helper methods and

Re: Transparent image

2009-02-09 Thread Rob Keniger
On 10/02/2009, at 10:30 AM, Christian Graus wrote: Yes - the interesting thing is, if I turn the grid on for the IKImageView, it is plainly well able to recognise the transparency layer in my PNG and render accordingly. We are overriding IKImageView already, although we're not yet doing