Class BitmapUnpacker
Extracts bitmap resources from an assembly.
Inherited Members
Namespace: TheXDS.MCART.Resources
Assembly: MCART.Windows.dll
Syntax
public class BitmapUnpacker : AssemblyUnpacker<Bitmap>, IUnpacker<Bitmap>
Constructors
| Edit this page View SourceBitmapUnpacker(Assembly, string)
Extracts bitmap resources from an assembly.
Declaration
public BitmapUnpacker(Assembly assembly, string path)
Parameters
Type | Name | Description |
---|---|---|
Assembly | assembly | Source Assembly. |
string | path | Path (as a namespace) where the embedded resources will be located at. |
Methods
| Edit this page View SourceUnpack(string)
Extracts a bitmap with the specified id.
Declaration
public override Bitmap Unpack(string id)
Parameters
Type | Name | Description |
---|---|---|
string | id | Id of the bitmap to be extracted. |
Returns
Type | Description |
---|---|
Bitmap | A bitmap that has been extracted from the specified embedded resource id. |
Overrides
Exceptions
Type | Condition |
---|---|
MissingResourceException | Thrown if the resource could not be found. |
Unpack(string, ICompressorGetter)
Extracts a bitmap with the specified id.
Declaration
public override Bitmap Unpack(string id, ICompressorGetter compressor)
Parameters
Type | Name | Description |
---|---|---|
string | id | Id of the bitmap to be extracted. |
ICompressorGetter | compressor | ICompressorGetter to use when extracting the resource. |
Returns
Type | Description |
---|---|
Bitmap | A bitmap that has been extracted from the specified embedded resource id. |
Overrides
Exceptions
Type | Condition |
---|---|
MissingResourceException | Thrown if the resource could not be found. |