Click here to Skip to main content
15,897,273 members
Articles / Desktop Programming / MFC

ImageStone - A Powerful C++ Class Library for Image Manipulation

Rate me:
Please Sign up or sign in to vote.
4.81/5 (250 votes)
6 Dec 2011Zlib3 min read 121.7K   51.5K   405  
An article on a library for image manipulation
#pragma once

//-------------------------------------------------------------------------------------
class CMy002Doc : public CDocument
{
public:
    FCObjImage   m_img ;
    FCImageProperty   m_property ;

    ~CMy002Doc() ;

private:
    std::deque<FCObjImage*>   m_undo ;
    std::deque<FCObjImage*>   m_redo ;

    enum TARGET_STATUS
    {
        TARGET_FILE_OK,
        TARGET_FILE_VIOLATION,
        TARGET_FILE_DENY,
    };
    static TARGET_STATUS QuerySaveTargetFileStatus (LPCTSTR strDestFile) ;

    virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);

    void SaveCurrentToUndo() ;
    void SaveCurrentToRedo() ;
    void ClearRedo() ;

    afx_msg void OnEditUndo();
    afx_msg void OnUpdateEditUndo(CCmdUI* pCmdUI);
    afx_msg void OnEditRedo();
    afx_msg void OnUpdateEditRedo(CCmdUI* pCmdUI);

    afx_msg void OnFileSaveAs();
    afx_msg void OnToolExportAscii();
    afx_msg void OnImageEffect(UINT nID);
    afx_msg void OnEditCopy();
	DECLARE_MESSAGE_MAP()

    DECLARE_DYNCREATE(CMy002Doc)
};

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The zlib/libpng License


Written By
Team Leader PhoXo
China China
graduate from University of Science and Technology of China at 2002.

Now I work at www.phoxo.com.

Comments and Discussions