Method Load<T>
- Namespace
- MaaFramework.Binding
- Assembly
- MaaFramework.Binding.dll
Load<T>(Stream)
Creates a new instance of the MaaFramework.Binding.MaaImage class from the given stream
.
public static MaaImage Load<T>(Stream stream) where T : IMaaImageBuffer, new()
Parameters
stream
Stream-
The stream containing image information.
Returns
- MaaImage
-
A MaaFramework.Binding.MaaImage.
Type Parameters
T
Load<T>(string)
Creates a new instance of the MaaFramework.Binding.MaaImage class from the given file.
public static MaaImage Load<T>(string filename) where T : IMaaImageBuffer, new()
Parameters
filename
string-
The filename of an image.
Returns
- MaaImage
-
A MaaFramework.Binding.MaaImage.
Type Parameters
T
Load(IMaaImageBuffer)
Creates a new instance of the MaaFramework.Binding.MaaImage class from the given buffer
.
public static MaaImage Load(IMaaImageBuffer buffer)
Parameters
buffer
IMaaImageBuffer-
The buffer containing image information.
Returns
- MaaImage
-
A MaaFramework.Binding.MaaImage.