ArcObjects Library Reference (Display)  

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
[C#]
public IDynamicGlyph CreateDynamicGlyphFromFile (
    esriDynamicGlyphType GlyphType,
    string fileName,
    IColor transparencyColor
);
[C++]
HRESULT CreateDynamicGlyphFromFile(
  esriDynamicGlyphType GlyphType,
  BSTR fileName,
  IColor* transparencyColor,
  IDynamicGlyph** glyph
);
[C++]

Parameters

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

glyph [out, retval]

  glyph is a parameter of type IDynamicGlyph

Product Availability

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

Remarks

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