Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF
  • Page:
  • 1

TOPIC:

A little bug in color of annotations? 9 years 8 months ago #6936

  • petr.sklenicka
  • petr.sklenicka's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 36
  • Thank you received: 0
Hi,
I have a little issue with colors of annotations. Suppose these steps:

1) Add some annotation to document
2) Set fill color for this annotation to 0xFFFFFF01.
3) Call GetFillColor on this annotation. The returned value is 0xFFFFFF00.

The color values are different. For other colors (e.g. 0xFFFF0000) is works fine), but exactly for color 0xFFFFFF01 it does not work fine.
Is this some bug in your library?

Thanks in advance.

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

A little bug in color of annotations? 9 years 8 months ago #6938

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
in PDF file, color value saved as float values.
and SDK using int values, convert to float is (1.0/255)
and get color may loss small float point value by int type convertion.
The following user(s) said Thank You: sanyu erisa

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

  • Page:
  • 1
Powered by Kunena Forum