Class ImageUnpacker
Extracts BitmapImage resources from an assembly.
Implements
Inherited Members
Namespace: TheXDS.MCART.Resources
Assembly: MCART.Wpf.Common.dll
Syntax
public class ImageUnpacker : AssemblyUnpacker<BitmapImage?>, IUnpacker<BitmapImage?>
Constructors
| Edit this page View SourceImageUnpacker(Assembly, string)
Extracts BitmapImage resources from an assembly.
Declaration
public ImageUnpacker(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 BitmapImage resource with the specified id.
Declaration
public override BitmapImage? Unpack(string id)
Parameters
Type | Name | Description |
---|---|---|
string | id | Id of the BitmapImage to be extracted. |
Returns
Type | Description |
---|---|
BitmapImage | A BitmapImage that has been extracted from the specified embedded resource id. |
Overrides
| Edit this page View SourceUnpack(string, ICompressorGetter)
Extracts a BitmapImage resource with the specified id.
Declaration
public override BitmapImage? Unpack(string id, ICompressorGetter compressor)
Parameters
Type | Name | Description |
---|---|---|
string | id | Id of the BitmapImage to be extracted. |
ICompressorGetter | compressor | ICompressorGetter to use when extracting the resource. |
Returns
Type | Description |
---|---|
BitmapImage | A BitmapImage that has been extracted from the specified embedded resource id. |