Class CIMPictureFill
Represents a picture fill which fills polygonal geometry with a picture. Supported file types are .bmp, .jpg, .png, and .gif.
public class CIMPictureFill : CIMFill
- Inheritance
-
CIMPictureFill
- Inherited Members
Constructors
CIMPictureFill()
public CIMPictureFill()
Properties
ColorSubstitutions
Gets or sets the color substitutions which allows colors in the image to be substituted with a different color.
public CIMColorSubstitution[] ColorSubstitutions { get; set; }
Property Value
Height
Gets or sets the height of the image.
public double Height { get; set; }
Property Value
OffsetX
Gets or sets the distance that the image is offset in the horizontal direction.
public double OffsetX { get; set; }
Property Value
OffsetY
Gets or sets the distance that the image is offset in the vertical direction.
public double OffsetY { get; set; }
Property Value
Rotation
Gets or sets angle of the image within the fill.
public double Rotation { get; set; }
Property Value
ScaleX
Gets or sets 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 URL of the image. Typically a base64 encoded image.
public string URL { get; set; }
Property Value
Methods
FromJson(string, JsonDeserializationSettings)
Reconstructs the CIMPictureFill with a specified state from a JSON encoding.
public static CIMPictureFill FromJson(string json, JsonDeserializationSettings settings = null)
Parameters
jsonstringThe JSON string containing the CIMPictureFill state.
settingsJsonDeserializationSettingsThe JSON deserialization settings.
Returns
ToJson(JsonSerializationSettings)
Creates a JSON encoding of the CIMPictureFill and its current state.
public override string ToJson(JsonSerializationSettings settings = null)
Parameters
settingsJsonSerializationSettingsThe JSON serialization settings.