Type: info
         Title: + vcl/ImageRepository
     Posted by: [EMAIL PROTECTED]
      Affected: VCL
Effective from: CWS hsqlcsvstage1


*Summary*
--------
+ vcl/imagerepository.hxx
+ ::vcl::ImageRepository

*Description*
-------------
The class ImageRepository, in namespace vcl, declared in
vcl/imagerepository.hxx, allows access to the application image
repository, better known as images.zip.

It has only one public (static) method:
  /** loads an image from the application's image repository
      @param  _rName
          the name of the image to load.
      @param  _out_rImage
          will take the image upon successful return.
      @param  bSearchLanguageDependent
          determines whether a language-dependent image is to be searched.
      @return
          whether or not the image could be loaded successfully.
  */
  static bool loadImage(
      const ::rtl::OUString& _rName,
      BitmapEx& _out_rImage,
      bool bSearchLanguageDependent
    );

The method is a small wrapper around a VCL-internal class, which loads
images from the images.zip when they're requested from a resource file.

You can use this class for loading images without the detour via
resources.
That is, normally you would
- at compile time, declare an Image in a .src file, specifying the image
  file name
- at runtime, construct an Image instance with the given resource ID,
  which would internally load the image from the repository

With the ImageRepository class, you can directly load the image, even
if you don't (want to) have resource access.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to