Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
img画像を灰色にしたかったのですが、タグを CSS styleに設定すると機能しないことがわかりましたfilter: grayscale(10%)。
img
filter: grayscale(10%)
Air は、または をサポートしていますfilter: grayscale(10%)か-webkit-filter: grayscale(10%)?
-webkit-filter: grayscale(10%)
Air がサポートする CSS プロパティを示す投稿はありますか?
UIComponent.blendModeまたはGraphicElement.blendModeプロパティを"luminosity"イメージまたはグラフィックに設定します。
UIComponent.blendMode
GraphicElement.blendMode
"luminosity"
この方法は、画像内の色を画像の「背後」の色 (通常は親コンテナーまたはアプリケーションの背景色) とブレンドすることによって機能します。
したがって、画像の背後の色が白または薄い灰色の場合、画像は灰色になります。背後の色が緑色の場合、画像は緑色に着色されます