ImageSource Members

An object that stores a specified image.

Constructors

Name Description
ImageSource(SvgImage) Creates an ImageSource object and sets its ImageSource.SvgImage property to the image passed as a parameter.
ImageSource(SvgImage, Boolean) Creates an ImageSource object and sets its ImageSource.SvgImage property to the SVG image passed as a parameter.
ImageSource(Boolean, Byte[]) Initializes a new instance of the ImageSource class with specified settings.
ImageSource(Image) Creates an ImageSource object and sets its ImageSource.Image property to the image passed as a parameter.
ImageSource(Image, Boolean) Creates an ImageSource object and sets its ImageSource.Image property to the image passed as a parameter.
ImageSource(String, String) For internal use.

Properties

Name Description
Image Returns an image.
IsEmpty Indicates whether the ImageSource object stores an image.
SvgImage Returns an SVG image.

Methods

Name Description
Clone()
Dispose() Disposes of the ImageSource.Image object and sets the ImageSource.SvgImage property to null.
Equals(Object) Determines whether the specified object is equal to the current ImageSource object.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
FromFile(String) static Creates an ImageSource object and specifies its ImageSource.SvgImage or ImageSource.Image property depending on the image stored in the specified file.
GetHashCode() Gets the hash code (a number) that corresponds to the value of the current ImageSource object.
GetImageSize(Boolean) Gets floating-point width and height of the image the ImageSource object stores.
GetType() Gets the Type of the current instance. Inherited from Object.
IsNullOrEmpty(ImageSource) static Indicates whether the specified ImageSource object stores an image.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
ToString() Returns a string that represents the current object. Inherited from Object.
See Also