When using. Net to develop certain arcgisengine interfaces for parameter passing, some interfaces defined earlier in MS [ifontdisp, ipicturedisp] are sometimes used.
These interfaces have been replaced by new types in. net. How can we perform type conversion? A static object is provided in the engine. Net API to facilitate this common type conversion?
Process description
A static OLE object is provided in the ESRI. ArcGIS. Utility. comsupport package of the Arc GIS engine. Net API.
You can use the methods provided by this object to conveniently. net object [system. drawing. font system. drawing. bitmap system. drawing. icon] to the corresponding early interface [ifontdisp, ipicturedisp]
The function is as follows:
ESRI. ArcGIS. Utility. comsupport. Ole. getifontdispfromfont ()
ESRI. ArcGIS. Utility. comsupport. Ole. getipicturedispfrombitmap ()
ESRI. ArcGIS. Utility. comsupport. Ole. getipicturedispfromicon ()
The Class Library also provides the method for Converting color and irgbcolor.