Table of Contents

Class ImageElement

Namespace
Northwoods.Go
Assembly
Northwoods.GoDiagram.WinForms.dll

Provides some kind of visual image for a Picture, with a reference to a System.Drawing.Image.

public class ImageElement
Inheritance
ImageElement
Inherited Members

Remarks

When specifying a Source, valid strings are:

  • an image/icon in the ResourceManager
  • an embedded resource image
  • an accessible image file
  • a web image URL
  • a base64 image string

Constructors

ImageElement(string, Image)

Contructs an element to be displayed by a Picture.

public ImageElement(string uri, Image img)

Parameters

uri string

the source attibute, which serves as an identifier

img Image

the Image to be displayed

Remarks

This class should only be constructed when setting Element directly.

Properties

Height

Gets the height of the element.

public double Height { get; }

Property Value

double

Image

Gets the SKImage displayed by this ImageElement.

public SKImage Image { get; }

Property Value

SKImage

IsComplete

Gets whether this element has completed loading, successfully or not.

public bool IsComplete { get; }

Property Value

bool

IsLoaded

Gets whether this element loaded successfully.

public bool IsLoaded { get; }

Property Value

bool

PlatformImage

Gets the System.Drawing.Image displayed by this ImageElement.

public Image PlatformImage { get; }

Property Value

Image

Src

Gets the URI pointing to the image.

public string Src { get; }

Property Value

string

Svg

Gets the SKSvg displayed by this ImageElement.

public SKSvg Svg { get; }

Property Value

SKSvg

Remarks

This property is only set if the image source was an SVG file.

Width

Gets the width of the element.

public double Width { get; }

Property Value

double