cntimagesutility.h File Reference

NONSHARABLE_CLASS ( CContactImagesUtility )


This is a utility class used for operations on the private images folder that is used to store scaled images assigned to contacts on the contacts database.

When user assigns an image to a contact, the contacts database needs to take ownership of the image. Because of this, a copy of the image is stored in an separate directory. If need be, the image is rescaled to a smaller size before being copied. Users of CContactDatabase API can scale down and store the images in this directory using this utility class. This will avoid any rescaling when saving the contact increasing performance of the save operation.