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

Contents of /trunk/Include/wptJPG.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 422 - (show annotations)
Tue Mar 27 17:41:26 2012 UTC (12 years, 11 months ago) by twoaday
File MIME type: text/plain
File size: 1457 byte(s)
2012-03-27  Timo Schulz  <twoaday@gmx.net>

        * wptJPG.h: Added to SVN repository. Thanks to Grzesiek.
	

1 /* 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 #ifndef WPT_JPG_H
18 #define WPT_JPG_H 1
19
20 class CJPG
21 {
22 private:
23 LONG m_Height; /* height (in pixels ignore what current device context uses) */
24 LONG m_Weight; /* size of the image object in bytes */
25 LONG m_Width; /* width (in pixels ignore what current device context uses) */
26
27 IPicture* m_IPicture; /* Same As LPPICTURE (typedef IPicture __RPC_FAR *LPPICTURE)*/
28
29 public:
30 CJPG ();
31 virtual ~CJPG ();
32
33 void freePictureData ();
34 BOOL load (LPCSTR sFilePathName);
35 BOOL loadPictureData (BYTE* pBuffer, int nSize);
36 BOOL show (HDC pDC, POINT *leftTop, POINT *widthHeight,
37 int magnifyX, int magnifyY);
38 BOOL updateSizeOnDC (HDC pDC);
39
40 LONG getHeight (void);
41 LONG getWeight (void);
42 LONG getWidth (void);
43 };
44
45 #endif /*WPT_JPG_H*/

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26