[Digikam-devel] extragear/graphics/digikam/libs/dimg

Marcel Wiesweg marcel.wiesweg at gmx.de
Sun Feb 12 14:21:17 GMT 2006


SVN commit 508640 by mwiesweg:

digikam from trunk: DImg: always preserve metadata, better bitBlt support

- group data members of a DImg object:
    - metadata
    - image data (null, width, height, alpha, sixteenbit)
    - data pointer
  With imaging operations, the first group is always preserved, the latter two may change
- add a few private methods for often reused code
- add a private constructor which copies metadata, but creates a new data buffer with a new size,
  used by copy and scale
- add a putImage method which replaces the data pointer and the image data,
  used by DImgInterface and thus the image plugins
- add a stripImageData method which allows to "strip" the data off, take
  ownership of the buffer, and leave the image as null. Useful for temporary images.
- extend bitBlt to support source coordinates, width and height parameters.
- add some flavors of the bitBltImage method, all using bitBlt in the end
- use bitBlt for copy and crop to eliminate all the code doing simple blitting operations
- add some comments in dimg files
- add a method metadata(DImg::METADATA) in analogy to attribute() and embeddedText().
  Is a method setMetadata necessary?

CCMAIL: digikam-devel at kde.org


 M  +260 -147  dimg.cpp  
 M  +47 -9     dimg.h  
 M  +3 -5      dimgscale.cpp  





More information about the Digikam-devel mailing list