Click or drag to resize

ImageProxy Class

Holds an image, either from a resource or from a file stream or from the clipboard.
Inheritance Hierarchy

Namespace: Altaxo.Drawing
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
[SerializableAttribute]
public abstract class ImageProxy : IImmutable

The ImageProxy type exposes the following members.

Constructors
 NameDescription
Protected methodImageProxyInitializes a new instance of the ImageProxy class
Top
Properties
 NameDescription
Public propertyContentHash Gets a string that is unique for the content of the proxy.
Public propertyIsValid Returns true if this image proxy holds valid content.
Public propertyName Gets the name of the instance. Can be a file name, resource name, Url etc.
Public propertySizeReturns the original size of the image in points (1/72 inch).
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodStatic memberFromFile Creates an image proxy from a file location.
Public methodStatic memberFromResource Creates an image proxy from a resource.
Public methodStatic memberFromStream Creates an image proxy from the content of a stream.
Public methodGetContentStream Gets the content of the image proxy as a (library independent) stream. Any library that can read image streams can be used to convert the stream in the corresponding image.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodStatic memberGetImageInformation Gets information about physical size (Attention: in points, i.e. 1/72 inch, not in 1/96 inch!), about pixel size and resolution.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodHasSameContentAs Determines whether the provided image proxy has the same content as this one.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToString Converts to string.
(Overrides ObjectToString)
Top
Fields
 NameDescription
Protected fieldStatic memberInchesPerPoint 
Protected fieldStatic memberPointsPerInch 
Top
See Also