23 |
|
|
24 |
class CJPG |
class CJPG |
25 |
{ |
{ |
26 |
|
private: |
27 |
|
LONG m_Height; /* height (in pixels ignore what current device context uses) */ |
28 |
|
LONG m_Weight; /* size of the image object in bytes (file OR resource) */ |
29 |
|
LONG m_Width; /* width (in pixels ignore what current device context uses) */ |
30 |
|
|
31 |
|
IPicture* m_IPicture; /* Same As LPPICTURE (typedef IPicture __RPC_FAR *LPPICTURE)*/ |
32 |
|
|
33 |
public: |
public: |
34 |
CJPG (); |
CJPG (); |
35 |
virtual ~CJPG (); |
virtual ~CJPG (); |
37 |
void freePictureData (); |
void freePictureData (); |
38 |
BOOL load (LPCSTR sFilePathName); |
BOOL load (LPCSTR sFilePathName); |
39 |
BOOL loadPictureData (BYTE* pBuffer, int nSize); |
BOOL loadPictureData (BYTE* pBuffer, int nSize); |
40 |
BOOL show (HDC pDC, POINT *LeftTop, POINT *WidthHeight, |
BOOL show (HDC pDC, POINT *leftTop, POINT *widthHeight, |
41 |
int MagnifyX, int MagnifyY); |
int magnifyX, int magnifyY); |
42 |
BOOL updateSizeOnDC (HDC pDC); |
BOOL updateSizeOnDC (HDC pDC); |
43 |
|
|
44 |
LONG m_Height; /* height (in pixels ignore what current device context uses) */ |
LONG getHeight (void); |
45 |
LONG m_Weight; /* size of the image object in bytes (file OR resource) */ |
LONG getWeight (void); |
46 |
LONG m_Width; /* width (in pixels ignore what current device context uses) */ |
LONG getWidth (void); |
|
|
|
|
private: |
|
|
IPicture* m_IPicture; /* Same As LPPICTURE (typedef IPicture __RPC_FAR *LPPICTURE)*/ |
|
47 |
}; |
}; |
48 |
|
|
49 |
#endif /*WPT_JPG_H*/ |
#endif /*WPT_JPG_H*/ |