Class ResourceLoader
Resource loader class.
Inheritance
System.Object
ResourceLoader
Namespace: FastReport.Olap.Utils
Assembly: FastReport.Olap.dll
Syntax
public static class ResourceLoader
Fields
DefaultAssemblyName
Declaration
public const string DefaultAssemblyName = "FastReport.Olap"
Field Value
Type | Description |
---|---|
System.String |
Methods
GetBitmap(String, String)
Gets a bitmap from specified assembly resource.
Declaration
public static Bitmap GetBitmap(string assembly, string resource)
Parameters
Type | Name | Description |
---|---|---|
System.String | assembly | Assembly name. |
System.String | resource | Resource name. |
Returns
Type | Description |
---|---|
System.Drawing.Bitmap | Bitmap object. |
GetStream(String)
Gets a stream from FastReport assembly resource.
Declaration
public static Stream GetStream(string resource)
Parameters
Type | Name | Description |
---|---|---|
System.String | resource | Resource name. |
Returns
Type | Description |
---|---|
System.IO.Stream | Stream object. |
GetStream(String, String)
Gets a stream from specified assembly resource.
Declaration
public static Stream GetStream(string assembly, string resource)
Parameters
Type | Name | Description |
---|---|---|
System.String | assembly | Assembly name. |
System.String | resource | Resource name. |
Returns
Type | Description |
---|---|
System.IO.Stream | Stream object. |
UnpackStream(String)
Gets a stream from specified FastReport assembly resource and unpacks it.
Declaration
public static Stream UnpackStream(string resource)
Parameters
Type | Name | Description |
---|---|---|
System.String | resource | Resource name. |
Returns
Type | Description |
---|---|
System.IO.Stream | Stream object. |
UnpackStream(String, String)
Gets a stream from specified assembly resource and unpacks it.
Declaration
public static Stream UnpackStream(string assembly, string resource)
Parameters
Type | Name | Description |
---|---|---|
System.String | assembly | Assembly name. |
System.String | resource | Resource name. |
Returns
Type | Description |
---|---|
System.IO.Stream | Stream object. |