/[winpt]/trunk/PTD/wptJPG.h
ViewVC logotype

Annotation of /trunk/PTD/wptJPG.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (hide annotations)
Mon Jan 31 11:02:21 2005 UTC (20 years, 1 month ago) by twoaday
File MIME type: text/plain
File size: 1629 byte(s)
WinPT initial checkin.


1 twoaday 2 /* wptJPG.h - Routins four showing JPG picture files
2     * Copyright (C) 2001 Dr.Yovav Gad <[email protected]>
3     * Copyright (C) 2005 Timo Schulz
4     *
5     * This file is part of PTD.
6     *
7     * PTD is free software; you can redistribute it and/or modify
8     * 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
10     * (at your option) any later version.
11     *
12     * PTD is distributed in the hope that it will be useful,
13     * but WITHOUT ANY WARRANTY; without even the implied warranty of
14     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15     * GNU General Public License for more details.
16     *
17     * You should have received a copy of the GNU General Public License
18     * along with PTD; if not, write to the Free Software Foundation,
19     * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
20     */
21     #ifndef WPT_JPG_H
22     #define WPT_JPG_H 1
23    
24     class CJPG
25     {
26     public:
27     CJPG ();
28     virtual ~CJPG ();
29    
30     void FreePictureData ();
31     BOOL Load (LPCSTR sFilePathName);
32     BOOL LoadPictureData (BYTE* pBuffer, int nSize);
33     BOOL Show (HDC pDC, POINT *LeftTop, POINT *WidthHeight, int MagnifyX, int MagnifyY);
34     BOOL UpdateSizeOnDC (HDC pDC);
35    
36     IPicture* m_IPicture; /* Same As LPPICTURE (typedef IPicture __RPC_FAR *LPPICTURE)*/
37    
38     LONG m_Height; /* Height (In Pixels Ignor What Current Device Context Uses) */
39     LONG m_Weight; /* Size Of The Image Object In Bytes (File OR Resource) */
40     LONG m_Width; /* Width (In Pixels Ignor What Current Device Context Uses) */
41     };
42    
43     #endif /*WPT_JPG_H*/

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26