Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Parameter NameDescription
-DfilenameThe name of output file (.resx File)
-DdirectoryThe base directory in which to scan for images

Initializing the IImageCache Service

The IImageCache Service is used by the Consultingwerk.Util.ImageHelper:Load method to return Images to the application. The ImageHelper:Load is the default routine of the SmartComponent Library framework to load images. 

The Consultingwerk.Windows.Util.ImageCache Service is the default implementation of the IImageCache Service.

It's loaded from the Consultingwerk/Windows/Framework/Reference/services.xml or a custom service.xml file. 

The service loads the .resx Files based on the IConfigurationProvider properties:

Code Block
languagejs
"LoadImageResources": "Consultingwerk/Windows/images.resx"

or

Code Block
languagejs
"LoadImageResources": {
  "1": "Consultingwerk/Windows/images.resx",
  "2": "Consultingwerk/Windows/another file.resx"
}

The service will load .resx Files specified with the index 0 to 100.

Retrieving Images from the IImageCache Service

The ImageHelper:Load method will handle loading Images from the IImageCache Service when Registered with the ServiceContainer. Images are expected to be referenced by the relative file name.