This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Display > ESRI.ArcGIS.Display > Interfaces > ID > IDynamicGlyphFactory Interface > IDynamicGlyphFactory.CreateDynamicGlyphFromFile Method (ArcObjects .NET 10.5 SDK) |
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
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).