Show / Hide Table of Contents

Class ImageUnpacker

Extracts BitmapImage resources from an assembly.

Inheritance
object
AssemblyUnpacker<BitmapImage>
ImageUnpacker
Implements
IUnpacker<BitmapImage>
Inherited Members
AssemblyUnpacker<BitmapImage>.UnpackStream(string)
AssemblyUnpacker<BitmapImage>.UnpackStream(string, ICompressorGetter)
AssemblyUnpacker<BitmapImage>.TryUnpack(string, out BitmapImage)
AssemblyUnpacker<BitmapImage>.TryUnpack(string, ICompressorGetter, out BitmapImage)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: TheXDS.MCART.Resources
Assembly: MCART.Wpf.Common.dll
Syntax
public class ImageUnpacker : AssemblyUnpacker<BitmapImage?>, IUnpacker<BitmapImage?>

Constructors

| Edit this page View Source

ImageUnpacker(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 Source

Unpack(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
AssemblyUnpacker<BitmapImage>.Unpack(string)
| Edit this page View Source

Unpack(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.

Overrides
AssemblyUnpacker<BitmapImage>.Unpack(string, ICompressorGetter)

Implements

IUnpacker<T>

Extension Methods

Objects.ShallowCopyTo(object, object, Type)
ObjectExtensions.FieldsOf<T>(object)
ObjectExtensions.GetAttribute<T>(object)
ObjectExtensions.GetAttributes<T>(object)
ObjectExtensions.HasAttrValue<TAttribute, TValue>(object, out TValue)
ObjectExtensions.HasAttribute<T>(object)
ObjectExtensions.HasAttribute<T>(object, out T?)
ObjectExtensions.HasAttributes<T>(object, out IEnumerable<T>?)
ObjectExtensions.Is(object?, object?)
ObjectExtensions.IsEither(object, IEnumerable)
ObjectExtensions.IsEither(object, params object[])
ObjectExtensions.IsNeither(object, IEnumerable)
ObjectExtensions.IsNeither(object, params object[])
ObjectExtensions.IsNot(object?, object?)
ObjectExtensions.PropertiesOf<T>(object)
ObjectExtensions.WhichAre(object, IEnumerable<object>)
ObjectExtensions.WhichAre(object, params object[])
Common.IfNotNull<T>(T?, Action<T>)
Objects.Itself<T>(T)
Objects.ShallowCopyTo<T>(T, T)
CollectionExtensions.PushInto<TItem, TCollection>(TItem, ICollection<TCollection>)
DictionaryExtensions.PushInto<TKey, TValue>(TValue, TKey, IDictionary<TKey, TValue>)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX