Class FileDecoder
Provides methods for platform specific conversions of file content.
Inheritance
System.Object
FileDecoder
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Fusee.Base.Imp.Blazor
Assembly: Fusee.Base.Imp.Blazor.dll
Syntax
public static class FileDecoder
Methods
LoadImage(Stream)
Loads a new Bitmap-Object from the given stream.
Declaration
public static ImageData LoadImage(Stream file)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | file | Stream containing the image in a supported format (png, jpg). |
Returns
Type | Description |
---|---|
ImageData | An ImageData object with all necessary information. |
LoadImageAsync(Stream)
Loads a new Bitmap-Object from the given stream.
Declaration
public static Task<ImageData> LoadImageAsync(Stream file)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | file | Stream containing the image in a supported format (png, jpg). |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<ImageData> | An ImageData object with all necessary information. |