This document is archived and information here might be outdated.  Recommended version.

IDynamicGlyphFactory.CreateDynamicGlyphFromFile Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Display > ESRI.ArcGIS.Display > Interfaces > ID > IDynamicGlyphFactory Interface > IDynamicGlyphFactory.CreateDynamicGlyphFromFile Method
ArcGIS Developer Help

IDynamicGlyphFactory.CreateDynamicGlyphFromFile Method

Creates a dynamic glyph from a file.

[Visual Basic .NET]
Public Function CreateDynamicGlyphFromFile ( _
    ByVal GlyphType As esriDynamicGlyphType, _
    ByVal fileName As String, _
    ByVal transparencyColor As IColor _
) As IDynamicGlyph
public IDynamicGlyph CreateDynamicGlyphFromFile (
    esriDynamicGlyphType GlyphType,
    string fileName,
    IColor transparencyColor
HRESULT CreateDynamicGlyphFromFile(
  esriDynamicGlyphType GlyphType,
  BSTR fileName,
  IColor* transparencyColor
GlyphType [in]

GlyphType is a parameter of type esriDynamicGlyphType fileName [in]
fileName is a parameter of type BSTR transparencyColor [in]
transparencyColor is a parameter of type IColor*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


Creates a dynamic glyph from an image file. If the image file consists of an alpha channel, the method will honor the alpha values in the alpha channel, otherwise the alpha values will be set to be opaque (255). If the transparency color is not NULL, each pixel that matches the transparencyColor parameter will be transparent (its alpha values in the glyph will be set to 0).

See Also

IDynamicGlyphFactory Interface

.NET Samples

Dynamic logo