Class CIMPictureMarker
Represents a picture marker created from a raster (bitmapped) image file. The image can have color substitutions to replace one or more colors in the image or it can have a tint applied to the whole image depending on the picture type. Supported formats are .bmp, .jpg, .png, and .gif.
public class CIMPictureMarker : CIMMarker
- Inheritance
-
CIMPictureMarker
- Inherited Members
Constructors
CIMPictureMarker()
public CIMPictureMarker()
Properties
AnimatedSymbolProperties
Gets or sets the collection of symbol properties that apply when the symbol layer has animation data.
public CIMAnimatedSymbolProperties AnimatedSymbolProperties { get; set; }
Property Value
ColorSubstitutions
Gets or sets the color substitutions for the picture.
public CIMColorSubstitution[] ColorSubstitutions { get; set; }
Property Value
Depth3D
Gets or sets the depth of the image when drawn in 3D.
public double Depth3D { get; set; }
Property Value
InvertBackfaceTexture
Gets or sets a value indicating whether the image is right-reading when viewed from behind.
public bool InvertBackfaceTexture { get; set; }
Property Value
ScaleX
Gets or sets the scale X which changes the width of the symbol without changing the height (or depth in 3D), as a ratio.
public double ScaleX { get; set; }
Property Value
TextureFilter
Gets or sets how the image is resampled.
public TextureFilter TextureFilter { get; set; }
Property Value
TintColor
Gets or sets the color that is applied as a tint to the image. The color is applied to the whole image. When the tint is set to white the image appears with its native colors.
public CIMColor TintColor { get; set; }
Property Value
URL
Gets or sets the image that is used in the symbol layer. Typically a base64 encoded image.
public string URL { get; set; }
Property Value
VerticalOrientation3D
Gets or sets a value indicating whether the marker stands upright as though locked in place. The marker can be viewed from all angles.
public bool VerticalOrientation3D { get; set; }
Property Value
Methods
FromJson(string, JsonDeserializationSettings)
Reconstructs the CIMPictureMarker with a specified state from a JSON encoding.
public static CIMPictureMarker FromJson(string json, JsonDeserializationSettings settings = null)
Parameters
jsonstringThe JSON string containing the CIMPictureMarker state.
settingsJsonDeserializationSettingsThe JSON deserialization settings.
Returns
ToJson(JsonSerializationSettings)
Creates a JSON encoding of the CIMPictureMarker and its current state.
public override string ToJson(JsonSerializationSettings settings = null)
Parameters
settingsJsonSerializationSettingsThe JSON serialization settings.