tint

Why can't I set a custom color-tint for the UINavigationBar?

删除回忆录丶 提交于 2019-12-23 18:33:54
问题 I want to change the color on the navigation bar and the documentation states not to attempt to change the 'alpha' value. So, how can I set a color that is not the SDK defined values (e.g., [UIColor redColor], brownColor, etc.) if all the constructors provide an alpha value? I tried getting the current alpha value but that did not help. When I use a custom color, it causes the navigation bar to look like an x-ray (a scraggy, black-on-white). [self.navigationController.navigationBar

UIBarButtonSystemItem PageCurl does not change color with the toolbar

血红的双手。 提交于 2019-12-23 16:56:43
问题 I wanted to change the color of the navigation bar and tool bar, but the color of the page curl system icon UIBarButtonSystemItemPageCurl does not change with the tool bar tint color. If I use other system icons like bookmark, they will change. Does anyone have a solution for this sort of problem? I used the following lines to change the color of the navigation bar and the tool bar. self.navigationController.navigationBar.tintColor = [UIColor redColor]; self.navigationController.toolbar

Paint an image without removing it on html5 canvas

你。 提交于 2019-12-23 04:41:46
问题 I have a black and white image and i would like to paint it with the color i picked without removing the image. When i start to paint its painting the image borders either. I would like to still have the image over there and paint just the "background" of a PNG image just like this script: "http://www.williammalone.com/articles/create-html5-canvas-javascript-drawing-app/#demo-sizes" <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE

OpenGL ES: How to tint texture with color

天涯浪子 提交于 2019-12-19 19:52:22
问题 I have texture with alpha. And I want to tint it with some color, so it will be colored depending on color alpha value, but overal opacity will be defined only by texture alpha. This is similar to multi-texturing but with color instead of second texture. How to do it? (Updated) I have tried to set up texture combiner. Color is tinted fine, but there is problem with alpha - it doesn't take value from texture (like mask). My code at this moment: glActiveTexture (GL_TEXTURE0); // do we need

What is new in Drawable Tinting in Android L Developer Preview compared to previous version?

与世无争的帅哥 提交于 2019-12-18 12:49:28
问题 I am working of new Android L preview and now dealing with tinting concept on drawable. I want to know if there is anything new regarding drawable tinting in Android L Developer Preview. I read this this documentation which says: The Android L Developer Preview enables you to define bitmaps or nine-patches as alpha masks and to tint them using a color resource or a theme attribute that resolves to a color resource (for example, ?android:attr/colorPrimary ). You can create these assets only

UIToolbar tint on iOS 4

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-17 18:33:22
问题 just switched to iOS 4 on my iPhone 3GS and some of my apps broke. One issue I had is that I had a UIToolbar with some buttons, tinted to pink, that worked well on the 3.1.3 OS. After upgrading to iOS 4, the toolbar was still tinted, but the buttons it contained were no longer affected by the tint. The toolbar was pink while the buttons were regular-blue. Looked around for it on the net, but found no reference of such a thing. Anyone knows what broke in the process? 回答1: (must be frank here -

How would I tint an image programmatically on iOS?

こ雲淡風輕ζ 提交于 2019-12-17 02:33:19
问题 I would like to tint an image with a color reference. The results should look like the Multiply blending mode in Photoshop, where whites would be replaced with tint : I will be changing the color value continuously. Follow up: I would put the code to do this in my ImageView's drawRect: method, right? As always, a code snippet would greatly aid in my understanding, as opposed to a link. Update: Subclassing a UIImageView with the code Ramin suggested. I put this in viewDidLoad: of my view

How to tint an ImageIcon [duplicate]

旧巷老猫 提交于 2019-12-12 06:35:09
问题 This question already has an answer here : How to draw a BufferedImage with a color tint (1 answer) Closed 4 years ago . How would I tint the icon that is passed through here to be a different color? Say I wanted to take a white image and make it a bit darker. I have looked into BufferedImages and such but I can't seem to find anything that will fit into the setup that I am using. I should also note that I am drawing the images onto a JLabel if that makes a difference. Here is the source that

CSS color background over image

情到浓时终转凉″ 提交于 2019-12-12 04:53:52
问题 EDIT: Extremely important thing I forgot to mention, I can't edit the base html, only the css. This is for a reddit stylesheet. I want to have a semi-transparent color background over an image background as a tint. Here's what I've tried: This just shows the image: background: url(image) no-repeat, rgba(0,0,0,0.5); This shows the image and breaks its scaling (background-size: 100%;): background: rgba(0,0,0,0.5), url(image) no-repeat; This makes the background entirely black, with the

Use user's Background Image as “theme”

孤者浪人 提交于 2019-12-11 23:58:08
问题 With iOs 7 Apple has introcuced lot of new thing, lots about trasparency and similar. In "unlock screen" I saw this: Practically, this app uses user's springboard's Background as a "theme" for app influencing background, interactive and static elements (very clever thing!). I tried to search how to do this in official documentation but I can't find it, I'm I blind?! Has somebody an idea on how to do this? Only idea I got is to take a screenshot of springboard before app launch and "blur" it.