2 |
* Copyright (C) 2001 Dr.Yovav Gad <[email protected]> |
* Copyright (C) 2001 Dr.Yovav Gad <[email protected]> |
3 |
* Copyright (C) 2005 Timo Schulz |
* Copyright (C) 2005 Timo Schulz |
4 |
* |
* |
5 |
* This file is part of PTD. |
* This file is part of WinPT. |
6 |
* |
* |
7 |
* PTD is free software; you can redistribute it and/or modify |
* WinPT is free software; you can redistribute it and/or modify |
8 |
* it under the terms of the GNU General Public License as published by |
* it under the terms of the GNU General Public License as published by |
9 |
* the Free Software Foundation; either version 2 of the License, or |
* the Free Software Foundation; either version 2 of the License, or |
10 |
* (at your option) any later version. |
* (at your option) any later version. |
11 |
* |
* |
12 |
* PTD is distributed in the hope that it will be useful, |
* WinPT is distributed in the hope that it will be useful, |
13 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 |
* GNU General Public License for more details. |
* GNU General Public License for more details. |
27 |
CJPG (); |
CJPG (); |
28 |
virtual ~CJPG (); |
virtual ~CJPG (); |
29 |
|
|
30 |
void FreePictureData (); |
void freePictureData (); |
31 |
BOOL Load (LPCSTR sFilePathName); |
BOOL load (LPCSTR sFilePathName); |
32 |
BOOL LoadPictureData (BYTE* pBuffer, int nSize); |
BOOL loadPictureData (BYTE* pBuffer, int nSize); |
33 |
BOOL Show (HDC pDC, POINT *LeftTop, POINT *WidthHeight, int MagnifyX, int MagnifyY); |
BOOL show (HDC pDC, POINT *LeftTop, POINT *WidthHeight, |
34 |
BOOL UpdateSizeOnDC (HDC pDC); |
int MagnifyX, int MagnifyY); |
35 |
|
BOOL updateSizeOnDC (HDC pDC); |
36 |
|
|
37 |
LONG m_Height; /* Height (In Pixels Ignor What Current Device Context Uses) */ |
LONG m_Height; /* height (in pixels ignore what current device context uses) */ |
38 |
LONG m_Weight; /* Size Of The Image Object In Bytes (File OR Resource) */ |
LONG m_Weight; /* size of the image object in bytes (file OR resource) */ |
39 |
LONG m_Width; /* Width (In Pixels Ignor What Current Device Context Uses) */ |
LONG m_Width; /* width (in pixels ignore what current device context uses) */ |
40 |
|
|
41 |
private: |
private: |
42 |
IPicture* m_IPicture; /* Same As LPPICTURE (typedef IPicture __RPC_FAR *LPPICTURE)*/ |
IPicture* m_IPicture; /* Same As LPPICTURE (typedef IPicture __RPC_FAR *LPPICTURE)*/ |