问题标签 [tint]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
ios - 使用用户的背景图像作为“主题”
苹果在 iOs 7 中引入了很多新东西,很多关于透明度和类似的东西。在“解锁屏幕”中,我看到了这个:
实际上,这个应用程序使用用户的跳板背景作为应用程序影响背景、交互和静态元素的“主题”(非常聪明的事情!)。我试图在官方文档中搜索如何做到这一点,但我找不到它,我是我瞎了吗?!有人知道如何做到这一点吗?我唯一的想法是在应用程序启动之前拍摄跳板的屏幕截图并“模糊”它。但我不知道这是否可能以及如何......有人可以帮助我吗?
太感谢了!
colors - selectedimagetintcolor方法xcode 5
我是 ios 开发的新手。我想在 xcode 5 中更改所选标签栏项目的色调颜色。
我把它放在 TabBarController.h :
然后我把这段代码放在 .m 文件中查看确实加载:[[UITabBar appearance] setSelectedImageTintColor:[UIColor redColor]];
但什么也没发生?我想在 xcode 5 中为 ios 7 更改所选标签栏项目的色调。感谢您的帮助,抱歉我的英语不好:(
c# - 不要着色,而是“着色”精灵
在我的基于 2D 瓷砖的游戏中,玩家可以绘制瓷砖来改变那里的颜色。简单的方法(以及我已经做过的)是tint
使用SpriteBatch.Draw
.
这看起来不错,这是一个示例:
但是说,我想把木头漆成白色。如果您曾经弄乱过色调,您就会知道使用 tint 参数是不可能的。Color.White
会将精灵着色为默认颜色,而不是白色。这不是一个大问题,但我想有些用户可能想要它。
我的问题是,有没有一种方法可以根据色相/饱和度而不是色调为精灵着色。类似于 GIMP 中的“着色”功能。
一个明显的方法是在 GIMP 中使用这个函数,然后只导出每种颜色的精灵。问题在于,这对我所有的精灵都需要很长时间才能完成,而且每个精灵都有多种变化,这意味着你可以为一种块类型总共拥有 100 多个组合。
这可能吗?我想着色器可能会完成工作。
ios - Tint 2 UIButton on single Click
I have two button say button1 and button2 declared as
What I want to do is, when button1 is click button 2's tint color should be changed, so its like both button1 and 2 are same, when I click on button1 the tint should also effect in button2 as if button2 is also clicked, so its appearance should be like clicking two buttons at once when I click on button1. Is this possible?
My UserInteraction for button2 is disabled as I dont need its click event. On my button1 click I need button2 to also tint giving it an appearance like button 1 and 2 are simultaneously clicked.
EDIT: Some of you guys are still not getting my point. Imagine that on the run time screen there are two buttons, Button1 and Button2, imagine Button1 is invisible. Now if I click on Button1 it should look on the screen that I just clicked Button2. Setting tint color will only set the button2 tintcolor but it will not give the button clicked effect.
objective-c - UIButton - 关闭或减少“选择/按住”色调颜色
我想要一种方法来减少在 iOS 7 和 6 上按住 UIButton 时获得的黑暗变化(或作为最后的手段关闭)。由于选择时按钮上的图像,它看起来很可怕
谢谢
迪伦
ios - 在 iOS7 的深色和浅色键盘之间切换
在 iOS7 中,我们有深色和浅色键盘。我可以通过代码在我的应用程序中更改这些吗?
ios - 如何以编程方式更改全局色调?
我的项目需要在 2 个不同的全局色调值之间切换。如何以编程方式执行此操作?
android - 如何在android中以编程方式为图像视图设置色调?
需要为图像视图设置色调......我使用它的方式如下:
但它并没有改变...
solr - solr 增加 tint 字段可以存储的位数
我有一个price
类型的字段tint
,我将从中生成一个range facet
.
我现在有一些index
超出tint
类型限制(最大整数)的项目。
我如何增加tint
max integer value
?
这里是tint
定义schema.xml
:
<fieldType name="tint" class="solr.TrieIntField" precisionStep="8" positionIncrementGap="0"/>
我必须增加precisionStep=8
吗?因为尝试插入一个数字时发生错误# of digits = 10
ios - 如何正确利用 UISegmentedControl?
我是iOS
开发新手,想知道实现UISegmentedControl
.
我已将片段拖出,将其放到我想要的位置,通过侧边栏中的属性更改其色调颜色,然后更改每个片段的文本。然后我控制并拖动到ViewController.m
以创建一个出口。这是那个功能:
这很直观,但无法正常工作。虽然所有状态下的属性XCode
我都设置了自定义色调(整体选择段,然后双击每个单独的段),但在启动应用程序时只有左侧段被着色 - 右侧的边框仍然是默认值蓝色的。如果在iOS Simulator
我单击右侧部分,则颜色将更改为正确的设置色调。我还在侧边栏中设置了默认选择哪一个,但它没有在情节提要中显示。不确定我是否做对了,这些都是小错误,XCode
或者我是否错过了某些东西或一开始就做错了。
Xcode故事板:
启动时的 iOS 模拟器:
我正在运行Xcode 5.0.2
v7.0.3 iOS Simulator
。谢谢!