22 lines
459 B
C++
22 lines
459 B
C++
#ifndef _RESIZE_HPP_
|
|
#define _RESIZE_HPP_
|
|
#include <mdiwin//windows.hpp>
|
|
class Resize
|
|
{
|
|
public:
|
|
Resize(int width,int height, const RECT ©Rect,HGLOBAL hGlobalImage);
|
|
Resize(int width,int height,int newWidth,int newHeight,HGLOBAL hGlobalImage);
|
|
~Resize(void);
|
|
HGLOBAL resizeImage(void);
|
|
private:
|
|
typedef long Index;
|
|
int mOldWidth;
|
|
int mOldHeight;
|
|
int mNewWidth;
|
|
int mNewHeight;
|
|
HGLOBAL mhGlobalImage;
|
|
RECT mCopyRect;
|
|
WORD mIsCopyRect;
|
|
};
|
|
#endif
|