Class CIMPictureStroke
Represents a picture stroke which draws linear geometry with a repeating image file. Supported file types are .bmp, .jpg, .png, and .gif.
public class CIMPictureStroke : CIMStroke
- Inheritance
-
CIMPictureStroke
- Inherited Members
Constructors
CIMPictureStroke()
public CIMPictureStroke()
Properties
ColorSubstitutions
Gets or sets the color substitutions for the picture.
public CIMColorSubstitution[] ColorSubstitutions { 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
Methods
FromJson(string, JsonDeserializationSettings)
Reconstructs the CIMPictureStroke with a specified state from a JSON encoding.
public static CIMPictureStroke FromJson(string json, JsonDeserializationSettings settings = null)
Parameters
jsonstringThe JSON string containing the CIMPictureStroke state.
settingsJsonDeserializationSettingsThe JSON deserialization settings.
Returns
ToJson(JsonSerializationSettings)
Creates a JSON encoding of the CIMPictureStroke and its current state.
public override string ToJson(JsonSerializationSettings settings = null)
Parameters
settingsJsonSerializationSettingsThe JSON serialization settings.