Select to view content in your preferred language

Problem with polygon graphics in ImageBlender application

664
4
11-12-2010 03:52 AM
PauPérez_Puigcerver
Emerging Contributor
Hi,

I'm using the application ImageBlender to make a HTML page to print, with the image returned by application.
The application works fine with points, polylines, and texts graphics, but not with polygons. When I draw a polygon whith any polygon symbol, the application doesn't return any image.

When I choose Default polygon symbol, the graphicList variable has this value (polygon with 3 points): FILLPOLYGON;0_0_0_0_0_0_0.25;302,190%406,205%378,291$FILLPOLYGON;0_0_0_0_0_0_0.25

And with Solid: FILLPOLYGON;255_0_0_255_255_0_0.5;322,137%469,182%309,281$FILLPOLYGON; 255_0_0_255_255_0_0.5
I don't undertand this part of variable: $FILLPOLYGON;255_0_0_255_255_0_0.5

Which format does the application use for polygons?
Does anybody know what happens?

Thanks
0 Kudos
4 Replies
PauPérez_Puigcerver
Emerging Contributor
If I replace FILLPOLYGON with HOLLOWPOLYGON or DASHPOLYGON, it also works fine.

Pau Pérez
0 Kudos
PauPérez_Puigcerver
Emerging Contributor
Finally I have a solution.

The problem was the transparency parameter passed to the application.
In Default.aspx, the parameter was passed with point as decimal delimiter, and the application works with coma delimiter (at least on my server).

This is the solution:

var transPol = String(dojo.number.round(graphics.symbol._fill.a,2));
graphicSymbol += "_" + graphics.symbol._fill.r + "_" + graphics.symbol._fill.g + "_" + graphics.symbol._fill.b + "_" + transPol.replace(".",",");
//graphicSymbol += "_" + graphics.symbol._fill.r + "_" + graphics.symbol._fill.g + "_" + graphics.symbol._fill.b + "_" + graphics.symbol._fill.a;

Pau Pérez
0 Kudos
gisscconsulting
Emerging Contributor
Thanks for the input. This issue is resolved and there are more features added.

http://www.arcgis.com/home/item.html?id=81224fec1c3c47149b4d07c3c9b8027d
0 Kudos
PauPérez_Puigcerver
Emerging Contributor
Thanks for the new version. I will test it.

Regards.

Pau Pérez
0 Kudos