The scope is to develop a library to be consumed by host MFC application to manipulate TIFF multipage images stored in MS SQL database as a binary images.
The library should expose a class with the following signature:
void LoadImageFromDB(CWnd ImageWindow, char A, int B);
void RotateCW(CWnd ImageWindow);
void RotateCCW(CWnd ImageWindow);
BOOL NextPage(CWnd ImageWindow);
BOOL PreviousPage(CWnd ImageWindow);
void Zoom(CWnd ImageWindow, double Scale);
Using A and B as keys loads a binary image from DB, decodes it with WIC TIFF decoder, caches it and renders first frame into ImageWindow.
Database name is Storage. Table name is Images. Fields' names are A ( type of char(16) ), B( type of int ) and Image( type of image ). DB authentication method is "Windows Integrated"
Applies a 90 degrees clockwise rotation to current frame and updates image rendered in ImageWindow with rotated one
Same, but counterclockwise
Checks if next frame(page) exists and returns FALSE if not, otherwise selects next frame and updates image rendered in ImageWindow with the new one.
Same, but for previous frame(page)
Scales current frame(page) with passed Scale. Use the same scale for both horizontal and vertical transformation. Scale transformation should occure from frame(page)'s center.
All image manipulations must be done through WIC.
DB connectivity must be impletented with ADO.
Small MFC application with necessary controls to test library's functionality is to be supplied along with code.