[Winpt-commits] r422 - trunk/Include
scm-commit at wald.intevation.org
scm-commit at wald.intevation.org
Tue Mar 27 19:41:26 CEST 2012
Author: twoaday
Date: 2012-03-27 19:41:26 +0200 (Tue, 27 Mar 2012)
New Revision: 422
Added:
trunk/Include/wptJPG.h
Modified:
trunk/Include/ChangeLog
Log:
2012-03-27 Timo Schulz <twoaday at gmx.net>
* wptJPG.h: Added to SVN repository. Thanks to Grzesiek.
Modified: trunk/Include/ChangeLog
===================================================================
--- trunk/Include/ChangeLog 2012-03-12 19:43:25 UTC (rev 421)
+++ trunk/Include/ChangeLog 2012-03-27 17:41:26 UTC (rev 422)
@@ -1,3 +1,7 @@
+2012-03-27 Timo Schulz <twoaday at gmx.net>
+
+ * wptJPG.h: Added to SVN repository. Thanks to Grzesiek.
+
2012-01-30 Timo Schulz <twoaday at gmx.net>
* wptKeyserver.h: New value for DEF_HKP_KEYSERVER.
Added: trunk/Include/wptJPG.h
===================================================================
--- trunk/Include/wptJPG.h (rev 0)
+++ trunk/Include/wptJPG.h 2012-03-27 17:41:26 UTC (rev 422)
@@ -0,0 +1,45 @@
+/* wptJPG.h - Routins four showing JPG picture files
+ * Copyright (C) 2001 Dr.Yovav Gad <Sources at SuperMain.com>
+ * Copyright (C) 2005 Timo Schulz
+ *
+ * This file is part of WinPT.
+ *
+ * WinPT is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * WinPT is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+#ifndef WPT_JPG_H
+#define WPT_JPG_H 1
+
+class CJPG
+{
+private:
+ LONG m_Height; /* height (in pixels ignore what current device context uses) */
+ LONG m_Weight; /* size of the image object in bytes */
+ LONG m_Width; /* width (in pixels ignore what current device context uses) */
+
+ IPicture* m_IPicture; /* Same As LPPICTURE (typedef IPicture __RPC_FAR *LPPICTURE)*/
+
+public:
+ CJPG ();
+ virtual ~CJPG ();
+
+ void freePictureData ();
+ BOOL load (LPCSTR sFilePathName);
+ BOOL loadPictureData (BYTE* pBuffer, int nSize);
+ BOOL show (HDC pDC, POINT *leftTop, POINT *widthHeight,
+ int magnifyX, int magnifyY);
+ BOOL updateSizeOnDC (HDC pDC);
+
+ LONG getHeight (void);
+ LONG getWeight (void);
+ LONG getWidth (void);
+};
+
+#endif /*WPT_JPG_H*/
More information about the Winpt-commits
mailing list