- Posts: 18
- Thank you received: 0
Microsoft Windows Phone 8.1 support ends (13 Jul 2017)
Microsoft has ended support for Windows Phone 8.1
Questions about iOS development and PDF
Note disappears on change of Color of note
- Yugandhara
- Topic Author
- Offline
- New Member
-
Less
More
9 years 7 months ago #10959
by Yugandhara
Note disappears on change of Color of note was created by Yugandhara
when i change the color of the note using the method setFillColor:colorCode
and then refresh the page using RenderPrepare and RenderSync methods, my note disappears for some color codes such as 55000,20000,60000.
and then refresh the page using RenderPrepare and RenderSync methods, my note disappears for some color codes such as 55000,20000,60000.
9 years 7 months ago #10960
by emanuele
Replied by emanuele on topic Note disappears on change of Color of note
Hi,
normally we use hexadecimal notation as 0xFF00D6D8 to set color, as we can manage the opacity and RGB channels easier.
if you try to convert your int value 55000 to hexadecimal notation, you'll get 0xD6D8, that is equal to 0x0000D6D8.
With 0x0000D6D8 the opacity value is 0 and you won't see the color set with setFillColor.
I think that the correct value you're trying to set is 0xFF00D6D8 (4278245080 in int notation).
I suggest to use the hexadecimal notation to set colors (0xAARRGGBB)
normally we use hexadecimal notation as 0xFF00D6D8 to set color, as we can manage the opacity and RGB channels easier.
if you try to convert your int value 55000 to hexadecimal notation, you'll get 0xD6D8, that is equal to 0x0000D6D8.
With 0x0000D6D8 the opacity value is 0 and you won't see the color set with setFillColor.
I think that the correct value you're trying to set is 0xFF00D6D8 (4278245080 in int notation).
I suggest to use the hexadecimal notation to set colors (0xAARRGGBB)
- Yugandhara
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 18
- Thank you received: 0
9 years 7 months ago #10963
by Yugandhara
Replied by Yugandhara on topic Note disappears on change of Color of note
Hi emanuale,
The setFillColor method accepts only int value as input.
So i don't understand how will i pass hexadecimal value to it and solve this issue.
Also if not using setFillColor method, then which is an alternative method that can be used to change the color of the note?
If you were able to solve this issue, can you please share the code here?
The setFillColor method accepts only int value as input.
So i don't understand how will i pass hexadecimal value to it and solve this issue.
Also if not using setFillColor method, then which is an alternative method that can be used to change the color of the note?
If you were able to solve this issue, can you please share the code here?
9 years 7 months ago #10964
by emanuele
Replied by emanuele on topic Note disappears on change of Color of note
Hi,
is not necessary to use hexadecimal notation, but it's necessary to use the correct value.
For example. 55000 won't show a color as it's equivalent to 0x0000D6D8 (0xD6D8) and the opacity is 0; the correct value is something like 4278245080, that is equivalent to 0xFF00D6D8 (value with the correct opacity value).
is not necessary to use hexadecimal notation, but it's necessary to use the correct value.
For example. 55000 won't show a color as it's equivalent to 0x0000D6D8 (0xD6D8) and the opacity is 0; the correct value is something like 4278245080, that is equivalent to 0xFF00D6D8 (value with the correct opacity value).
- Yugandhara
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 18
- Thank you received: 0
9 years 7 months ago #10970
by Yugandhara
Replied by Yugandhara on topic Note disappears on change of Color of note
Hi Emanuale,
After using the value that you have specified in the below conversation i.e.4278245080 ,I am still getting the same issue.
After using the value that you have specified in the below conversation i.e.4278245080 ,I am still getting the same issue.
9 years 7 months ago #10978
by emanuele
Replied by emanuele on topic Note disappears on change of Color of note
Time to create page: 0.436 seconds