<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic ROP2 issue with ITextSymbol in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/rop2-issue-with-itextsymbol/m-p/614391#M16492</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ArcMap 10.0 Service pack 5&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I apply ROP2 = esriRasterOpCode.esriROPNotXOrPen or ROP2 = esriRasterOpCode.esriROPXOrPen to an ISymbol, the text displayed by the associated ITextSymbol is fully deformed and if a IMask (halo) is associated to the ITextSymbol, it doesn't appear.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I remove the ROP2 property all is OK. Here is the code :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ITextSymbol tipTextSymb = new TextSymbolClass();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;stdole.IFontDisp fontDisp = new stdole.StdFontClass() as stdole.IFontDisp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fontDisp.Name = "Arial";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fontDisp.Size = (decimal) 9;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tipTextSymb.Font = fontDisp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IRgbColor tipTextRgbCol = new RgbColorClass();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tipTextRgbCol.Blue = 255;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tipTextSymb.Color = tipTextRgbCol;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;tipTextSymb.Text = "Foo";&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ISymbol tipSymb = _tipTextSymb as ISymbol;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tipSymb.ROP2 = esriRasterOpCode.esriROPNotXOrPen;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tipSymb = tipTextSymb as ISymbol;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IMxDocument mxDoc = _application.Document as IMxDocument;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IActiveView av = mxDoc.ActiveView;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IScreenDisplay scrDisp = av.ScreenDisplay;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;scrDisp.StartDrawing(scrDisp.hDC, (short)esriScreenCache.esriNoScreenCache);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;scrDisp.SetSymbol(tipSymb);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;scrDisp.DrawText(mouseLocation, tipTextSymb.Text);&amp;nbsp; // mouseLocation : IPoint&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;scrDisp.FinishDrawing();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;JC Piron&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 May 2014 13:42:11 GMT</pubDate>
    <dc:creator>jean-claudepiron</dc:creator>
    <dc:date>2014-05-13T13:42:11Z</dc:date>
    <item>
      <title>ROP2 issue with ITextSymbol</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/rop2-issue-with-itextsymbol/m-p/614391#M16492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ArcMap 10.0 Service pack 5&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I apply ROP2 = esriRasterOpCode.esriROPNotXOrPen or ROP2 = esriRasterOpCode.esriROPXOrPen to an ISymbol, the text displayed by the associated ITextSymbol is fully deformed and if a IMask (halo) is associated to the ITextSymbol, it doesn't appear.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I remove the ROP2 property all is OK. Here is the code :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ITextSymbol tipTextSymb = new TextSymbolClass();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;stdole.IFontDisp fontDisp = new stdole.StdFontClass() as stdole.IFontDisp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fontDisp.Name = "Arial";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fontDisp.Size = (decimal) 9;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tipTextSymb.Font = fontDisp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IRgbColor tipTextRgbCol = new RgbColorClass();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tipTextRgbCol.Blue = 255;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tipTextSymb.Color = tipTextRgbCol;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;tipTextSymb.Text = "Foo";&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ISymbol tipSymb = _tipTextSymb as ISymbol;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tipSymb.ROP2 = esriRasterOpCode.esriROPNotXOrPen;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tipSymb = tipTextSymb as ISymbol;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IMxDocument mxDoc = _application.Document as IMxDocument;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IActiveView av = mxDoc.ActiveView;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IScreenDisplay scrDisp = av.ScreenDisplay;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;scrDisp.StartDrawing(scrDisp.hDC, (short)esriScreenCache.esriNoScreenCache);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;scrDisp.SetSymbol(tipSymb);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;scrDisp.DrawText(mouseLocation, tipTextSymb.Text);&amp;nbsp; // mouseLocation : IPoint&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;scrDisp.FinishDrawing();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;JC Piron&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 13:42:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/rop2-issue-with-itextsymbol/m-p/614391#M16492</guid>
      <dc:creator>jean-claudepiron</dc:creator>
      <dc:date>2014-05-13T13:42:11Z</dc:date>
    </item>
  </channel>
</rss>

