error in PgSetStrokeWidth

Hello,

we are using the function PgSetStrokeWidth() of Photon to draw lines (of a
polygon) with a width of more than one pixel.

Unfortunately this function does not work properly and in the documentation
is a hint not to use a width of more than one (what is the function then
for?), because of problems of some graphic drivers.

Is there another way of drawing thicker polylines or better graphic drivers
(we are using QRTP Patch B)?

Bye,
Mark Nischik

Hi Mark,

Did you try using PgSetStrokeFWidth()?? It should allow you
to set the line width to greater than 1.

Hope this helps
Regards
Brenda

Mark Nischik <mark.nischik@distefora.com> wrote:

Hello,

we are using the function PgSetStrokeWidth() of Photon to draw lines (of a
polygon) with a width of more than one pixel.

Unfortunately this function does not work properly and in the documentation
is a hint not to use a width of more than one (what is the function then
for?), because of problems of some graphic drivers.

Is there another way of drawing thicker polylines or better graphic drivers
(we are using QRTP Patch B)?

Bye,
Mark Nischik

Hello,

I tried PgSetStrokeFWidth() and PgSetStrokeWidth() too, both functions show
the same result.
What will be the real difference between these two functions, unless the
range of values of the parameter?

Even installing Patch C (with improvements according drawing of polygons?)
did not succeed til now.

Bye,
Mark

“Gui Group” <gui@qnx.com> schrieb im Newsbeitrag
news:9f69vk$gj7$1@nntp.qnx.com

Hi Mark,

Did you try using PgSetStrokeFWidth()?? It should allow you
to set the line width to greater than 1.

Hope this helps
Regards
Brenda

Mark Nischik <> mark.nischik@distefora.com> > wrote:
Hello,

we are using the function PgSetStrokeWidth() of Photon to draw lines (of
a
polygon) with a width of more than one pixel.

Unfortunately this function does not work properly and in the
documentation
is a hint not to use a width of more than one (what is the function then
for?), because of problems of some graphic drivers.

Is there another way of drawing thicker polylines or better graphic
drivers
(we are using QRTP Patch B)?

Bye,
Mark Nischik

Hi Mark,

I have spoken to the developer and could you post a sample of your code to this newsgroup
It would be easier see what is going on.

One thing to check is if your setting the Pg_DRAW_STROKE flag when you call
PgDrawPolygon. This flag needs to be set.

Hope this helps
Regards
Brenda


Mark Nischik <mark.nischik@distefora.com> wrote:

Hello,

I tried PgSetStrokeFWidth() and PgSetStrokeWidth() too, both functions show
the same result.
What will be the real difference between these two functions, unless the
range of values of the parameter?

Even installing Patch C (with improvements according drawing of polygons?)
did not succeed til now.

Bye,
Mark

“Gui Group” <> gui@qnx.com> > schrieb im Newsbeitrag
news:9f69vk$gj7$> 1@nntp.qnx.com> …
Hi Mark,

Did you try using PgSetStrokeFWidth()?? It should allow you
to set the line width to greater than 1.

Hope this helps
Regards
Brenda

Mark Nischik <> mark.nischik@distefora.com> > wrote:
Hello,

we are using the function PgSetStrokeWidth() of Photon to draw lines (of
a
polygon) with a width of more than one pixel.

Unfortunately this function does not work properly and in the
documentation
is a hint not to use a width of more than one (what is the function then
for?), because of problems of some graphic drivers.

Is there another way of drawing thicker polylines or better graphic
drivers
(we are using QRTP Patch B)?

Bye,
Mark Nischik

Hello,

sorry for the delay, but now we prepared a good and simple example to
reproduce this error:

Compile program with:
gcc PhotonBug.cpp -lph -lphrender -o PhotonBug

When you start PhotonBug you will see small window with two small red
drawings in it.
The first one is simple line drawn with LineWidth: 1, thats fine.
The second one is the same line drawn with LineWidth: 2 - you will see that
it is transformed into triangle.

This is the same problem which we have when we draw a more complex image.

Bye,
Mark Nischik

“Gui Group” <gui@qnx.com> schrieb im Newsbeitrag
news:9fljdp$bgl$3@nntp.qnx.com

Hi Mark,

I have spoken to the developer and could you post a sample of your code to
this newsgroup
It would be easier see what is going on.

One thing to check is if your setting the Pg_DRAW_STROKE flag when you
call
PgDrawPolygon. This flag needs to be set.

Hope this helps
Regards
Brenda


Mark Nischik <> mark.nischik@distefora.com> > wrote:
Hello,

I tried PgSetStrokeFWidth() and PgSetStrokeWidth() too, both functions
show
the same result.
What will be the real difference between these two functions, unless the
range of values of the parameter?

Even installing Patch C (with improvements according drawing of
polygons?)
did not succeed til now.

Bye,
Mark

“Gui Group” <> gui@qnx.com> > schrieb im Newsbeitrag
news:9f69vk$gj7$> 1@nntp.qnx.com> …
Hi Mark,

Did you try using PgSetStrokeFWidth()?? It should allow you
to set the line width to greater than 1.

Hope this helps
Regards
Brenda

Mark Nischik <> mark.nischik@distefora.com> > wrote:
Hello,

we are using the function PgSetStrokeWidth() of Photon to draw lines
(of
a
polygon) with a width of more than one pixel.

Unfortunately this function does not work properly and in the
documentation
is a hint not to use a width of more than one (what is the function
then
for?), because of problems of some graphic drivers.

Is there another way of drawing thicker polylines or better graphic
drivers
(we are using QRTP Patch B)?

Bye,
Mark Nischik


\

begin 666 PhotonBug.cpp
M(VEN8VQU9&4@/%!T+F@^#0H-“E!T5VED9V5T7W0@G!W;F1-86EN(#T@3E5,
M3#L@#0IV;VED(&1R87<H(%!T5VED9V5T7W0@G=I9&=E="P@4&A4:6QE7W0@
M
F1A;6%G92 I.PT
#0IV;VED($EN:717:61G971S*“D@>PT*“5!T07)G7W0@
M87)G<ULU73L-”@E[#0H)“6EN=”!N/3 [#0H)“5!H4&]I;G1?=”!P;G1$24T@
M/2![(#(W-BP@,C<V('T[#0H)“5!T4V5T07)G*“9A<F=S6VXKUTL4’1?05)’
M7T1)32P@)G!N=$1)32P@,"D[#0H)"5!T4V5T07)G
"9A<F=S6VXKUTL4’1?
M05)'7U=)3D1/5U]4251,12P@(DUA<"(L(# I.PT
"0EP=VYD36%I;B ](%!T
M0W)E871E5VED9V5T(“A0=%=I;F1O=RP@4’1?3D]?4$%214Y4+”!N+”!A<F=S
M3L-"@E]#0H)>PT"0EI;G0@;CTP.PT*“0E0:%!O:6YT7W0@<&YT4$]3(#T@
M>R @,3 L(” Q,”!].PT*“0E0:%!O:6YT7W0@<&YT1$E-(#T@>R R-38L(#(U
M-B!].PT*“0E0=%-E=$%R9R@@)F%R9W-;;BLK72P@4’1?05)'7T1)32P@)G!N
M=$1)32P@,” I.PT*“0E0=%-E=$%R9R@@)F%R9W-;;BLK72P@4’1?05)'7U!/
M4RP@)G!N=%!/4RP@,” I.PT*“0E0=%-E=$%R9R@@)F%R9W-;;BLK72P@4’1?
M05)‘7U)!5U]$4D%77T8L(“9D<F%W+” Q("D[#0H)“5!T0W)E871E5VED9V5T
M*%!T4F%W+”!P=VYD36%I;BP@;BP@87)G<R I.PT*“7T-”@E0=%)E86QI>F57
M:61G970H<’=N9$UA:6XI.PT*?0T*#0H-“FEN=”!M86EN*&EN=”!A<F=C+”!C
M:&%RB!A<F=V6UTI('L-“B @(”!0=$EN:70@$Y53$PI.PT*“4EN:717:61G
M971S*“D[#0H@(” @4’1-86EN3&]O<”@I.R -”@ER971U<FX@,#L-“GT-”@IV
M;VED(&1R87<H(%!T5VED9V5T7W0@G=I9&=E=“P@4&A4:6QE7W0@F1A;6%G
M92 I"GL
(” @(%!H4F5C=%]T(’)E8W0["@H@(" @9&%M86=E(#T@9&%M86=E
M.PH
(” @(%!T4W5P97)#;&%S<T1R87<H(%!T0F%S:6,L(’=I9&=E=“P@9&%M
M86=E(“D[”@H@(” @+R]F:6YD(&]U<B!C86YV87,@“B @(”!0=$-A;&-#86YV
M87,H(’=I9&=E=“P@)G)E8W0@3L( H@(” @+R]C;&EP(‘1O(&]U<B!B87-I
M8R!C86YV87,@&ET)W,@;VYL>2!P;VQI=&4I+@H@(" @4’1#;&EP061D"!W
M:61G970L(“9R96-T(“D[”@H@(” @+R]$;R!O=7(@9’)A=VEN9RXN+@H)4&A0
M;VEN=%]T(&%D9" ]('LP+" P?3L-"@E0:%!O:6YT7W0@<'1S6S(R72 ]('L-
M"@D)>S(P+" T,‘TL#0H)"7LR,“P@,SE]+ T*“0E[,C L(#,X?2P-”@D)>S(P
M+” S-WTL#0H)“7LR,“P@,S9]+ T*“0E[,C L(#,U?2P-”@D)>S(P+” S-‘TL
M#0H)"7LR,“P@,S-]+ T*“0E[,C L(#,R?2P-”@D)>S(P+” S,7TL#0H)"7LR
M,“P@,S!]+ T*“0E[,C L(#(Y?2P-”@D)>S(P+” R.‘TL#0H)"7LR,“P@,C=]
M+ T*“0E[,C L(#(V?2P-”@D)>S(P+” R-7TL#0H)"7LR,“P@,C1]+ T*“0E[
M,C L(#(S?2P-”@D)>S(P+” R,GTL#0H)“7LR,“P@,C%]+ T*“0E[,C L(#(P
M?2P-”@D)>S4P+” R,'TL#0H)?3L-”@T*"5!G4V5T4W1R;VME5VED=&@H,2D[
M#0H)4&=39713=’)O:V5#;VQO<BA09U]2140I.PT*"5!G1’)A=U!O;'EG;VXH
M<'1S+” R,BP@)F%D9"P@4&=?1%)!5U]35%)/2T4I.PT*"0T*"6%D9"YXSTU
M,#L-"@E09U-E=%-T<F]K95=I9’1H
#(I.PT*"5!G4V5T4W1R;VME0V]L;W(H
M4&=?4D5$3L-"@E09T1R87=0;VQY9V]N’!T<RP@,C(L(“9A9&0L(%!G7T12
M05=?4U123TM%3L-"@D-"@T(” @("\O<F5M;W9E(&]U<B!C;&EP<&EN9PH@
4(" @4’1#;&EP4F5M;W9E*"D["GT
end