Click here to Skip to main content
15,880,796 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
For the RenderOptions.EdgeMode attribute, the XPS spec doesn’t have an XPS example where the Aliased value is set. Does anyone know of a good way I can see an example of that? Is there an example document with EdgeMode set? The spec says:

“RenderOptions.EdgeMode ST_EdgeMode Controls how edges of paths within the canvas are rendered. The only valid value is Aliased. Omitting this attribute causes the edges to be rendered in the consumer's default manner.”

So I’m looking for an example of what it looks like. The XPS spec gives an example but it doesn’t say anything about “Aliased”:

XML
<xs:attributeGroup name="AG_Canvas">

<xs:attribute name="RenderTransform" type="ST_RscRefMatrix"> </xs:attribute>

<xs:attribute name="Clip" type="ST_RscRefAbbrGeomF"> </xs:attribute>

<xs:attribute name="Opacity" type="ST_ZeroOne" default="1.0"> </xs:attribute>

<xs:attribute name="OpacityMask" type="ST_RscRef"> </xs:attribute>

<xs:attribute name="Name" type="ST_Name"> </xs:attribute>

<xs:attribute name="RenderOptions.EdgeMode" type="ST_EdgeMode"> </xs:attribute>

<xs:attribute name="FixedPage.NavigateUri" type="xs:anyURI"> </xs:attribute>

<xs:attribute ref="xml:lang"> </xs:attribute> <xs:attribute ref="x:Key" />

</xs:attributeGroup>


I searched online but don’t see any examples. Maybe one of you knows? Maybe just the fact that it has EdgeMode in there, it’s “aliased”? If it wasn’t in there, it wouldn’t have EdgeMode set to aliased in it at all?

I saw href="http://www.codeproject.com/Articles/25376/Introduction-to-XPS-Part-of-n-of-too-many" this href="http://www.codeproject.com/Articles/25376/Introduction-to-XPS-Part-of-n-of-too-many" target="_blank" title="New Window"> article on XPS but it doesn't mention edge mode. I've also looked at the XPS spec.

I'm not sure where EdgeMode would go in my xps:

XML
static const char* pCanvasData = "\
          <Canvas Name = \"TestCanvasName\" RenderTransform= \"1, 0, 0, 1, 0, 290\" Opacity = \"0.5\" RenderOptions.EdgeMode= \"Aliased\" >\
                  <Path Data=\"M 30,70 H 50 V 90 H 30 z\" Fill=\"#FFFF0000\" />\
                  <Path Data=\"M 30,70 H 50 V 90 H 30 z\" Fill=\"#FFFF0000\" />\
                   <Canvas>\
                         <Path Data=\"M 30,70 H 50 V 90 H 30 z\" Fill=\"#FFFF0000\" />\
                   </Canvas>\
                   <Path Data=\"M 30,70 H 50 V 90 H 30 z\" Fill=\"#FFFF0000\" />\
                   <Path Data=\"M 30,70 H 50 V 90 H 30 z\" Fill=\"#FFFF0000\" />\
           </Canvas>";
Posted
Updated 11-Mar-15 8:59am
v4
Comments
Mike Nordell 14-Mar-15 2:27am    
How do you see this, in any way or form, relating to C++?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900