Click or drag to resize

MemoryStreamImageProxy Class

Holds an image in memory, typically loaded from a file, stream, or clipboard.
Inheritance Hierarchy
SystemObject
  Altaxo.DrawingImageProxy
    Altaxo.DrawingMemoryStreamImageProxy

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

The MemoryStreamImageProxy type exposes the following members.

Constructors
 NameDescription
Public methodMemoryStreamImageProxy Initializes a new instance of the MemoryStreamImageProxy class.
Top
Properties
 NameDescription
Public propertyContentHash Gets a string that is unique for the content of the proxy.
(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 Returns true if this image proxy holds valid content.
(Overrides ImageProxyIsValid)
Public propertyName Gets the name of the instance. Can be a file name, resource name, Url etc.
(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 Creates a MemoryStreamImageProxy from a file.
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 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.
(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 Converts to string.
(Overrides ImageProxyToString)
Top
See Also