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

TOPIC:

Fill up annotations 7 years 5 months ago #11348

  • Shades
  • Shades's Avatar Topic Author
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 37
  • Thank you received: 0
Hi,

Is there a way to fill up rect and ellipse annotation ?

Thank you

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

Fill up annotations 7 years 5 months ago #11351

  • emanuele
  • emanuele's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 580
  • Thank you received: 67
Hi,

the last parameter of addAnnotEllipse and addAnnotRect is the fill color.
In demo project is set to 0, but you can change the value and set your custom fill color.

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

Fill up annotations 7 years 5 months ago #11360

  • emanuele
  • emanuele's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 580
  • Thank you received: 67
here is an example from the demo project:
[page addAnnotEllipse:&rect:g_rect_Width * m_scale / [vpage GetScale]:g_oval_color:0xFFFF8800];
where 0xFFFF8800 is the custom fill color

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

Fill up annotations 7 years 5 months ago #11383

  • Shades
  • Shades's Avatar Topic Author
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 37
  • Thank you received: 0
Thanks a lot for your example :)

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

  • Page:
  • 1
Powered by Kunena Forum