- Posts: 19
- Thank you received: 0
Microsoft Windows Phone 8.1 support ends (13 Jul 2017)
Microsoft has ended support for Windows Phone 8.1
Questions about Android development and PDF
Change Annotation Stroke and Fill Colors
IP: 192.168.0.71
8 years 4 months ago #13131
by alecrugar
Change Annotation Stroke and Fill Colors was created by alecrugar
Hi,
I want to change the color of the annotations (stroke and fill color for the Rect and Ellipse Annotations).
I've modified these values but it has no effect:
Thanks
I want to change the color of the annotations (stroke and fill color for the Rect and Ellipse Annotations).
I've modified these values but it has no effect:
Code:
public static void default_config()
{
selColor = 0x803ADF00;// selection color
findPrimaryColor = 0x803ADF00;// find primary color
findSecondaryColor = 0x803ADF00;// find secondary color
fling_dis = 1.0f;// 0.5-2
fling_speed = 0.1f;// 0.05 - 0.2
def_view = 0;// 0,1,2,3,4,5,6 0:vertical 1:horizon 2:curl effect 3:single
// 4:SingleEx 5:Reflow, 6:show 2 page as 1 page in land
// scape mode
render_mode = recommandedRenderMode();// 0,1,2 0:draft 1:normal 2:best with over print support.
dark_mode = false;// dark mode
zoomLevel = 5;
debug_mode = false;
setAnnotTransparency(annotTransparencyColor);
}
Thanks
IP: 192.168.0.71
8 years 4 months ago #13135
by Davide
Replied by Davide on topic Change Annotation Stroke and Fill Colors
Hi,
you have to change the two last params of AddAnnotRect and AddAnnotEllipse methods in PDFLayoutView class to edit stroke and fill color.
For more info check these :
www.radaeepdf.com/documentation/javadocs...oat:A-float-int-int-
www.radaeepdf.com/documentation/javadocs...oat:A-float-int-int-
Here you will find some info about the Global params : www.radaeepdf.com/support/knowledge-base?view=kb&kbartid=62
In the next release we will add stroke and fill color for each kind of annotation to Global class.
Thanks for your report!
you have to change the two last params of AddAnnotRect and AddAnnotEllipse methods in PDFLayoutView class to edit stroke and fill color.
For more info check these :
www.radaeepdf.com/documentation/javadocs...oat:A-float-int-int-
www.radaeepdf.com/documentation/javadocs...oat:A-float-int-int-
Here you will find some info about the Global params : www.radaeepdf.com/support/knowledge-base?view=kb&kbartid=62
In the next release we will add stroke and fill color for each kind of annotation to Global class.
Thanks for your report!
IP: 192.168.0.71
8 years 4 months ago #13137
by alecrugar
Replied by alecrugar on topic Change Annotation Stroke and Fill Colors
Hi,
thanks for your response.
I've changed these values, but it does not affect anything, the colours are still the same:
:S
thanks for your response.
I've changed these values, but it does not affect anything, the colours are still the same:
Code:
page.AddAnnotRect(rect, vpage.ToPDFSize(3), 0x8040FF00, 0x8040FF00);
:S
IP: 192.168.0.71
8 years 4 months ago #13139
by Davide
Replied by Davide on topic Change Annotation Stroke and Fill Colors
Hi,
if you add your annot to the pdf you will see the correct colors, if you want to see the new colors in the draw phase, you have to edit: onDrawRect and onDrawEllipse methods of PDFLayoutView.
Remember that if you want to modify some already created annots you have to use the following methods :
if you add your annot to the pdf you will see the correct colors, if you want to see the new colors in the draw phase, you have to edit: onDrawRect and onDrawEllipse methods of PDFLayoutView.
Remember that if you want to modify some already created annots you have to use the following methods :
- annot.SetFillColor www.radaeepdf.com/documentation/javadocs...ml#SetFillColor-int-
- annot.SetStrokeColor www.radaeepdf.com/documentation/javadocs...#SetStrokeColor-int-
IP: 192.168.0.71
8 years 4 months ago #13140
by alecrugar
Replied by alecrugar on topic Change Annotation Stroke and Fill Colors
That was it, thanks a lot!
Time to create page: 0.685 seconds