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

More
9 years 7 months ago #10959 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.
More
9 years 7 months ago #10960 by emanuele
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)
More
9 years 7 months ago #10963 by Yugandhara
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?
More
9 years 7 months ago #10964 by emanuele
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).
More
9 years 7 months ago #10970 by Yugandhara
Hi Emanuale,

After using the value that you have specified in the below conversation i.e.4278245080 ,I am still getting the same issue.
More
9 years 7 months ago #10978 by emanuele
Hi,

I checked to change the fill color of the same annot fist with
Code:
[m_annot setFillColor:4278250080];
then with
Code:
[m_annot setFillColor:4278245080];
the results are in the attachments




Time to create page: 0.436 seconds
Powered by Kunena Forum