- Posts: 64
- 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 iOS development and PDF
how fill color in rect ?
IP: 192.168.0.70
12 years 8 months ago #3295
by truculent
Replied by truculent on topic how fill color in rect ?
thank youuuuuuuuu DEaaaaaaaar radaeeeeeeeeee
:* : *

now is there any way for change the color of fill ?
whene i change another Value [ again alpha back to 1
]
:* : *

now is there any way for change the color of fill ?
whene i change another Value [ again alpha back to 1
IP: 192.168.0.70
12 years 8 months ago #3304
by radaee
Replied by radaee on topic how fill color in rect ?
you can get stroke color and set back to annotation with different alpha.
and then set fill color.
it can't change alpha value if set fill color only,
and then set fill color.
it can't change alpha value if set fill color only,
IP: 192.168.0.70
12 years 8 months ago #3306
by truculent
Replied by truculent on topic how fill color in rect ?
thank you
but can you give me another sample for anoter color?
why when i change grect color & fill color in addAnoot-xxxxxx()
again my rect with alpha 1
but you last value have correct alpha!
i cand undrestand how youndo it!
but can you give me another sample for anoter color?
why when i change grect color & fill color in addAnoot-xxxxxx()
again my rect with alpha 1
but you last value have correct alpha!
i cand undrestand how youndo it!
IP: 192.168.0.70
12 years 8 months ago - 12 years 8 months ago #3310
by radaee
Replied by radaee on topic how fill color in rect ?
for add rect annotation with fill color:
for add rect annotation without fill color:
set alpha for rect annotation:
set all values:
Code:
Page_AddAnnotRect( page, mat, rect, strokecolor_and_alpha, fill_color_with_255_alpha );
for add rect annotation without fill color:
Code:
Page_AddAnnotRect( page, mat, rect, strokecolor_and_alpha, fill_color_with_0_alpha );
set alpha for rect annotation:
Code:
int clr = Page_GetAnnotStrokeColor(page, annot);
clr &= 0xFFFFFF;//clear alpha value;
clr |= (alpha<<24);//set alpha value, alpha value is in range [0,255];
Page_SetAnnotStrokeColor( page, annot, clr );
set all values:
Code:
int stroke_clr = Page_GetAnnotStrokeColor(page, annot);
stroke_clr &= 0xFFFFFF;//clear alpha value;
stroke_clr |= (alpha<<24);//set alpha value, alpha value is in range [0,255];
int fill_clr = 0xFF000000 | your_fill_color;
Page_SetAnnotFillColor( page, annot, fill_clr );
Page_SetAnnotStrokeColor( page, annot, stroke_clr );
Page_SetAnnotStrokeWidth( page, annot, stroke_width );
Last edit: 12 years 8 months ago by .
Time to create page: 0.358 seconds