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”:
<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:
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>";