Hi All,

Does anyone know how to crop the image before it gets passed to the cImageContainer object?

I want to be able to use the SelectImage routine in cDbImageContainer.pkg to choose an image to save to the Database but I want to crop the image to fit a particular size, for example only 128x128 sized image (in pixel).

I've had my luck in terms of creating a cropped thumbnail sized image from a large image but it requires to write to DC (Device Context) and save it as a bitmap file and then re-read it. This works but I would very much like to do all of this in memory and plus I have only tested this logic on non-db Image container. I used the function DrawImageRectRect of cGDIGraphics to do this.

Thanks in advance.