API Reference
Class
VisualCanvasImageLayer
Image layer for host-provided bitmap or SVG-compatible image references.
Inheritance
- VisualCanvasLayer
- VisualCanvasImageLayer
Constructors
public VisualCanvasImageLayer(Double x, Double y, Double width, Double height) #Initializes an image layer.
Parameters
- x System.Double
- The image X coordinate.
- y System.Double
- The image Y coordinate.
- width System.Double
- The rendered image width.
- height System.Double
- The rendered image height.
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?
Properties
public String Href { get; set; } #Gets or sets the SVG image href. Renderers do not fetch it for PNG output.
public Byte[]? Rgba { get; set; } #Gets or sets borrowed source RGBA pixels. SVG embeds them as PNG when Href is empty.
public Int32 SourceWidth { get; set; } #Gets or sets the source bitmap width for PNG output.
public Int32 SourceHeight { get; set; } #Gets or sets the source bitmap height for PNG output.
public VisualCanvasImageFit Fit { get; set; } #Gets or sets how the source image is placed inside the destination rectangle.
public Double Opacity { get; set; } #Gets or sets image opacity from zero to one.
Inherited Properties
public Double X { get; set; } #Inherited from VisualCanvasLayer
public Double Y { get; set; } #Inherited from VisualCanvasLayer
public Double Width { get; set; } #Inherited from VisualCanvasLayer
public Double Height { get; set; } #Inherited from VisualCanvasLayer
public ChartRect Bounds { get; } #Inherited from VisualCanvasLayer