Click or drag to resize

MemoryStreamImageProxy Class

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

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

The MemoryStreamImageProxy type exposes the following members.

Constructors
 NameDescription
Public methodMemoryStreamImageProxyInitializes a new instance of the MemoryStreamImageProxy class
Top
Properties
 NameDescription
Public propertyContentHash
(Overrides ImageProxyContentHash)
Public propertyExtension Gets the extension that designates the type of memory stream, such as '.png' or '.jpg'.
Public propertyImageSizePixels Gets the image size in pixels.
Public propertyIsValid
(Overrides ImageProxyIsValid)
Public propertyName
(Overrides ImageProxyName)
Public propertyResolutionDpi Gets the image resolution in dpi.
Public propertySizeReturns the original size of the image in points (1/72 inch).
(Overrides ImageProxySize)
Public propertyUrl Either the name of a resource, or the original file name.
Top
Methods
 NameDescription
Public methodStatic memberComputeStreamHash(Byte) Computes the hash of the content of the given stream. The stream must be seekable, since it is positioned to the beginning before calculating the hash. Afterwards, the stream position is undefined.
Public methodStatic memberComputeStreamHash(Stream) Computes the hash of the content of the given stream. The stream must be seekable, since it is positioned to the beginning before calculating the hash. Afterwards, the stream position is undefined.
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 
Public methodStatic memberFromStream Creates a MemoryStreamImageProxy from a stream. A file name must be provided in order to deduce the kind of stream (.png for .png stream, .jpg for jpg stream and so on).
Public methodGetContentStream
(Overrides ImageProxyGetContentStream)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
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.
(Inherited from ImageProxy)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToString
(Overrides ImageProxyToString)
Top
See Also