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

Annotation of /trunk/PTD/wptJPG.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 261 - (hide annotations)
Sat Sep 30 10:24:23 2006 UTC (18 years, 5 months ago) by twoaday
File MIME type: text/plain
File size: 1661 byte(s)


1 werner 46 /* 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 WinPT.
6     *
7     * 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
9     * the Free Software Foundation; either version 2 of the License, or
10     * (at your option) any later version.
11     *
12     * WinPT 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 twoaday 165 private:
27     LONG m_Height; /* height (in pixels ignore what current device context uses) */
28 twoaday 261 LONG m_Weight; /* size of the image object in bytes */
29 twoaday 165 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 werner 46 public:
34     CJPG ();
35     virtual ~CJPG ();
36    
37     void freePictureData ();
38     BOOL load (LPCSTR sFilePathName);
39     BOOL loadPictureData (BYTE* pBuffer, int nSize);
40 twoaday 165 BOOL show (HDC pDC, POINT *leftTop, POINT *widthHeight,
41     int magnifyX, int magnifyY);
42 werner 46 BOOL updateSizeOnDC (HDC pDC);
43    
44 twoaday 165 LONG getHeight (void);
45     LONG getWeight (void);
46     LONG getWidth (void);
47 werner 46 };
48    
49     #endif /*WPT_JPG_H*/

Properties

Name Value
svn:eol-style native

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26