Note disappears on change of Color of note - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about iOS development and PDF
  • Page:
  • 1

TOPIC: Note disappears on change of Color of note

Note disappears on change of Color of note 2 years 3 months ago #10959

  • Yugandhara
  • Yugandhara's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 12
  • Thank you received: 0
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.

Please Log in or Create an account to join the conversation.

Note disappears on change of Color of note 2 years 3 months ago #10960

  • emanuele
  • emanuele's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 512
  • Karma: 15
  • Thank you received: 56
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)

Please Log in or Create an account to join the conversation.

Note disappears on change of Color of note 2 years 3 months ago #10963

  • Yugandhara
  • Yugandhara's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 12
  • Thank you received: 0
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?

Please Log in or Create an account to join the conversation.

Note disappears on change of Color of note 2 years 3 months ago #10964

  • emanuele
  • emanuele's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 512
  • Karma: 15
  • Thank you received: 56
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).

Please Log in or Create an account to join the conversation.

Note disappears on change of Color of note 2 years 3 months ago #10970

  • Yugandhara
  • Yugandhara's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 12
  • Thank you received: 0
Hi Emanuale,

After using the value that you have specified in the below conversation i.e.4278245080 ,I am still getting the same issue.

Please Log in or Create an account to join the conversation.

Note disappears on change of Color of note 2 years 3 months ago #10978

  • emanuele
  • emanuele's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 512
  • Karma: 15
  • Thank you received: 56
Hi,

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




Attachments:

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum