NativeScript/NativeScript

Image tintColor fills the image completely, no alpha

Offen

#5.787 geöffnet am 05.05.2018

 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)TypeScript (1.634 Forks)batch import
backlogbughelp wantedos: ios

Repository-Metriken

Stars
 (23.592 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 11T) (13 gemergte PRs in 30 T)

Beschreibung

problem occurs on iOS only

version numbers that the issue occurs with:

play.nativescript.org 4.0.1

  • CLI: 4.0.0
  • Cross-platform modules: "version": "4.0.0-2018-04-30-03"
  • Runtime(s): "tns-android": { "version": "4.1.0-2018.4.30.1" }, "tns-ios": { "version": "4.0.1" }

to reproduce

add an image in native playground project play.nativescript.org apply tintColor to the image add alpha channel to the tintColor e.g.

<Image src="https://play.nativescript.org/dist/assets/img/NativeScript_logo.png" tintColor="rgba(31, 25, 11, 0.5)" ></Image>

expected: the content of the image is drawn with the tone specified by the tintColor attribute actual: the image is drawn as a solid shape of the specified tintColor

works as expected on Android

Is there code involved?

no

sample screen shots

iphone -- grey box instead of tinted image

image

android -- correct tinted image

image


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Contributor Guide