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

TOPIC:

Annotations transparency 1 year 5 months ago #15764

  • Raccorder
  • Raccorder's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
Hi, How can I make the circle, oval and rectangle transparent (no filling) by default?
Thx

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

Annotations transparency 1 year 5 months ago #15765

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
dear user:
the color are defined in com.radaee.pdf.Global class.

public static int g_annot_highlight_clr = 0xFFFFFF00;//yellow
public static int g_annot_underline_clr = 0xFF0000C0;//dark blue
public static int g_annot_strikeout_clr = 0xFFC00000;//dark red
public static int g_annot_squiggle_clr = 0xFF00C000;//dark green

public static int gridview_icon_color = 0xFFFF9040;
public static int toolbar_icon_color = 0xFFFF9040;
public static int toolbar_bg_color = 0xFF202020;

public static float g_rect_annot_width = 3;
public static int g_rect_annot_color = 0xFFFF0000;//0x80FF0000;
public static int g_rect_annot_fill_color = 0xFF0000FF;//0x800000FF;
public static float g_oval_annot_width = 3;
public static int g_oval_annot_color = 0xFFFF0000;//0x80FF0000;
public static int g_oval_annot_fill_color = 0xFF0000FF;//0x800000FF;

public static float g_line_annot_width = 3;
public static int g_line_annot_style1 = 1;
public static int g_line_annot_style2 = 0;
public static int g_line_annot_color = 0xFFFF0000;//0x80FF0000;
public static int g_line_annot_fill_color = 0xFF0000FF;//0x800000FF;

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

Last edit: by radaee.

Annotations transparency 1 year 5 months ago #15766

  • Raccorder
  • Raccorder's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
Ok, great...I´ve found that if you set the color to 0x00000000 then is not filling. Thanks
Can you also guide me to how eliminate the box in the edit annotation? The stroke in the box I guess, but I am not able to find any global variable for that
Thanks

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

Last edit: by Raccorder. Reason: Solved first issue

Annotations transparency 1 year 5 months ago #15768

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
all variant name include "fill_color", set to 0.
this shall make annotations only has stroke lines.

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

Annotations transparency 1 year 5 months ago #15770

  • Raccorder
  • Raccorder's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
Yes that was accomplish, I was asking in the last post how to remove th box (or the stroke within the box) in the edit tool
Thanks

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

Last edit: by Raccorder.

Annotations transparency 1 year 5 months ago #15772

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
OK,
just set variant include "_width" to 0.
i mean set line width to 0, and stroke colors still set a opacity color.
this rule only for oval/rectangle/polygon annotations.
do not apply to ink/line/polyline annotations.

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

  • Page:
  • 1
Powered by Kunena Forum