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

Diff of /trunk/PTD/wptJPG.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 45 by twoaday, Tue Oct 25 07:46:20 2005 UTC revision 46 by werner, Fri Oct 28 12:57:05 2005 UTC
# Line 1  Line 1 
1  /* wptJPG.h - Routins four showing JPG picture files  /* wptJPG.h - Routins four showing JPG picture files
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 WinPT.   * This file is part of WinPT.
6   *   *
7   * WinPT 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   * WinPT 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.
16   *   *
17   * You should have received a copy of the GNU General Public License   * You should have received a copy of the GNU General Public License
18   * along with PTD; if not, write to the Free Software Foundation,   * along with PTD; if not, write to the Free Software Foundation,
19   * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA   * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
20   */   */
21  #ifndef WPT_JPG_H  #ifndef WPT_JPG_H
22  #define WPT_JPG_H 1  #define WPT_JPG_H 1
23    
24  class CJPG  class CJPG
25  {  {
26  public:  public:
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,      BOOL show (HDC pDC, POINT *LeftTop, POINT *WidthHeight,
34                 int MagnifyX, int MagnifyY);                 int MagnifyX, int MagnifyY);
35      BOOL updateSizeOnDC (HDC pDC);      BOOL updateSizeOnDC (HDC pDC);
36    
37      LONG m_Height; /* height (in pixels ignore 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 ignore 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)*/
43  };  };
44    
45  #endif /*WPT_JPG_H*/  #endif /*WPT_JPG_H*/

Legend:
Removed from v.45  
changed lines
  Added in v.46

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26