Visual Basic (Declaration) | |
---|---|
<SerializableAttribute()> Public NotInheritable Class LoadedImage |
C# | |
---|---|
[SerializableAttribute()] public sealed class LoadedImage |
The class encapsulates both the Image and the source from which the Image is loaded (e.g. a Stream object).
The class is useful because, as indicated in the MSDN documentation (http://msdn.microsoft.com/en-us/library/93z9ee4x.aspx), "You must keep the stream open for the lifetime of the Image".
When the Dispose method of a LoadedImage instance is invoked, then both the Image and its source are automatically disposed.
System.Object
CodeCarvings.Piczard.LoadedImage
Requirements
Namespace: CodeCarvings.Piczard
Platforms: Windows 8, Windows 7, Windows Vista, Windows XP Professional, Windows 2000 - Windows Server family: 2012, 2008.R2, 2008, 2003, 2000
Assembly: CodeCarvings.Piczard (in CodeCarvings.Piczard.dll)