ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Core.CIM Namespace / CIMPointSymbol Class
Members Example

In This Topic
    CIMPointSymbol Class
    In This Topic
    Represents a point symbol used to draw point features and point graphics.
    Object Model
    CIMPointSymbol ClassCIMCallout ClassCIMPointSymbol ClassCIMPointSymbol ClassCIMPolygonSymbol ClassCIM3DSymbolProperties Class
    How to construct a point symbol of a specific color and size
    await QueuedTask.Run(() =>
      CIMPointSymbol pointSymbol = SymbolFactory.Instance.ConstructPointSymbol(ColorFactory.Instance.RedRGB, 10.0);
    How to construct a point symbol of a specific color, size and shape
    await QueuedTask.Run(() =>
      CIMPointSymbol starPointSymbol = SymbolFactory.Instance.ConstructPointSymbol(ColorFactory.Instance.RedRGB, 10.0, SimpleMarkerStyle.Star);
    How to construct a point symbol from a marker
    await QueuedTask.Run(() =>
      CIMMarker marker = SymbolFactory.Instance.ConstructMarker(ColorFactory.Instance.GreenRGB, 8.0, SimpleMarkerStyle.Pushpin);
      CIMPointSymbol pointSymbolFromMarker = SymbolFactory.Instance.ConstructPointSymbol(marker);
    How to construct a point symbol from a file on disk
    //The following file formats can be used to create the marker: DAE, 3DS, FLT, EMF, JPG, PNG, BMP, GIF
    CIMMarker markerFromFile = await QueuedTask.Run(() => SymbolFactory.Instance.ConstructMarkerFromFile(@"C:\Temp\fileName.dae"));
    CIMPointSymbol pointSymbolFromFile = SymbolFactory.Instance.ConstructPointSymbol(markerFromFile);
    How to construct a point symbol from a in memory graphic
    //Create a stream for the image
    //At 3.0 you need
    System.Drawing.Image newImage = System.Drawing.Image.FromFile(@"C:\PathToImage\Image.png");
    var stream = new System.IO.MemoryStream();
    newImage.Save(stream, System.Drawing.Imaging.ImageFormat.Png);
    stream.Position = 0;
    //Create marker using the stream
    CIMMarker markerFromStream = SymbolFactory.Instance.ConstructMarkerFromStream(stream);
    //Create the point symbol from the marker
    CIMPointSymbol pointSymbolFromStream = SymbolFactory.Instance.ConstructPointSymbol(markerFromStream);
    Inheritance Hierarchy



    Target Platforms: Windows 11, Windows 10, Windows 8.1

    See Also