/*********************************************************************
* Portions COPYRIGHT 2013 STMicroelectronics *
* Portions SEGGER Microcontroller GmbH & Co. KG *
* Solutions for real time microcontroller applications *
**********************************************************************
* *
* (c) 1996 - 2013 SEGGER Microcontroller GmbH & Co. KG *
* *
* Internet: www.segger.com Support:
[email protected] *
* *
**********************************************************************
** emWin V5.22 - Graphical user interface for embedded applications **
All Intellectual Property rights in the Software belongs to SEGGER.
emWin is protected by international copyright laws. Knowledge of the
source code may not be used to write a similar product. This file may
only be used in accordance with the following terms:
The software has been licensed to STMicroelectronics International
N.V. a Dutch company with a Swiss branch and its headquarters in Plan-
les-Ouates, Geneva, 39 Chemin du Champ des Filles, Switzerland for the
purposes of creating libraries for ARM Cortex-M-based 32-bit microcon_
troller products commercialized by Licensee only, sublicensed and dis_
tributed under the terms and conditions of the End User License Agree_
ment supplied by STMicroelectronics International N.V.
Full source code is available at: www.segger.com
We appreciate your understanding and fairness.
----------------------------------------------------------------------
File : GUIDEMO_ZoomAndRotate.c
Purpose : Demo of zooming and rotating images
---------------------------END-OF-HEADER------------------------------
*/
/**
******************************************************************************
* @file GUIDEMO_ZoomAndRotate.c
* @author MCD Application Team
* @version V1.1.1
* @date 15-November-2013
* @brief Demo of zooming and rotating images
******************************************************************************
* @attention
*
* Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
*
* http://www.st.com/software_license_agreement_liberty_v2
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
******************************************************************************
*/
#include "GUIDEMO.h"
#if (SHOW_GUIDEMO_ZOOMANDROTATE && GUI_WINSUPPORT && GUI_SUPPORT_MEMDEV)
/*********************************************************************
*
* Static const data
*
**********************************************************************
*/
/*********************************************************************
*
* _bmSeggerLogo50
*/
static GUI_CONST_STORAGE GUI_COLOR _ColorsSeggerLogo50[] = {
0xFFFFFF,0xFFFFFF,0x201F23,0x979698
,0xBE6767,0xB85858,0x949495,0xA02020
,0xECD3D3,0xC0BFC0,0x909092,0x1C1B1E
,0x444346,0xA12323,0xA42A2A,0xA83333
,0x939394,0xAAA9AB,0xEED6D6,0xFDFAFA
,0xFDFDFD,0xFFFEFE,0x7E7D7F,0xBB5F5F
,0xBD6464,0x858486,0x9E9E9F,0xA2A2A3
,0xC2C2C3,0xFEFEFE,0x1B1B1E,0x212024
,0x252427,0x2C2B2F,0x5A595C,0x6D6C6F
,0xA22424,0xA32828,0xA42828,0xA52C2C
,0xAB3939,0xAD3F3F,0xAE4141,0xAE4242
,0xB04646,0xB24A4A,0xB55151,0xC06A6A
,0xC37171,0xC67979,0xC87E7E,0xC87F7F
,0x929193,0xA4A4A6,0xA9A9AB,0xB9B9BA
,0xBABABB,0xBDBDBE,0xCA8383,0xD09090
,0xD19494,0xD29595,0xD49A9A,0xDAA8A8
,0xDDAFAF,0xDDB0B0,0xDFB3B3,0xDFB5B5
,0xE1B8B8,0xBFBFC0,0xC8C8C9,0xCDCDCE
,0xD3D3D4,0xE6C4C4,0xE9CCCC,0xECD2D2
,0xEED8D8,0xEFD9D9,0xF1DFDF,0xE8E8E8
,0xECECEC,0xF4E4E4,0xF4E6E6,0xF5E6E6
,0xF6EAEA,0xF0F0F0,0xF5F5F5,0xF9F0F0
,0xF9F1F1,0xFAF3F3,0xFBF5F5,0xFBF6F6
,0xFBFBFB,0xFCF8F8,0xFEFCFC,0xFEFDFD
,0x070708,0x141314,0x242326,0x242327
,0x252428,0x27262A,0x2B2A2E,0x313033
,0x313034,0x343337,0x363539,0x38373B
,0x39383C,0x3B3B3E,0x3D3C3F,0x3E3D40
,0x424145,0x49484B,0x4A494C,0x4A494D
,0x4C4B4E,0x4F4E51,0x515053,0x535255
,0x555458,0x575659,0x5B5A5D,0x5B5B5E
,0x5C5B5E,0x5D5D5F,0x5F5F62,0x646366
,0x666667,0x666568,0x6E6E6F,0x717173
,0x727174,0x767578,0x767678,0x777679
,0x777779,0xAC3C3C,0xAC3D3D,0xBD6565
,0x807F81,0x808082,0x838284,0x868688
,0x878688,0x878789,0x8C8B8E,0x8D8D8F
,0x8E8E90,0x919192,0x939294,0x939395
,0x969597,0x969698,0x979799,0x9D9C9E
,0x9E9D9F,0x9E9EA0,0xA3A2A4,0xA4A4A5
,0xA5A4A6,0xA6A6A8,0xA7A6A8,0xA8A7A9
,0xA9A9AA,0xAAAAAC,0xABAAAC,0xACABAD
,0xADADAE,0xAEAEAF,0xAFAFB0,0xB0AFB1
,0xB0B0B1,0xB4B3B5,0xB5B4B6,0xB6B6B7
,0xBCBCBD,0xBDBCBD,0xBEBEBF,0xDBAAAA
,0xDCACAC,0xC0C0C1,0xC8C7C8,0xCAC9CA
,0xCCCCCD,0xCECECF,0xCFCFD0,0xD1D1D2
,0xD6D6D7,0xD8D8D9,0xD9D9DA,0xDADADA
,0xDBDBDB,0xDCDCDC,0xDEDDDE,0xDEDEDE
,0xF0DBDB,0xF0DCDC,0xE2E2E2,0xE4E4E4
,0xE5E4E5,0xE9E9E9,0xEAEAEB,0xEBEBEB
,0xECECED,0xEEEEEE,0xF7EDED,0xF8EDED
,0xF0F0F1,0xF1F1F2,0xF2F2F2,0xF3F3F3
,0xF3F3F4,0xF4F4F4,0xF7F7F7,0xF8F8F8
,0xF9F9F9,0xFAFAFA,0xFCFCFC
};
static GUI_CONST_STORAGE GUI_LOGPALETTE _PalSeggerLogo50 = {
219, /* number of entries */
1, /* Has transparency */
&_ColorsSeggerLogo50[0]
};
static GUI_CONST_STORAGE unsigned char _acSeggerLogo50[] = {
0x00, 0x0B, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02,
0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x0B, 0x00,
0x1E, 0x0C, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03,
0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x0C, 0x1E,
0x02, 0x10, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x10, 0x02,
0x02, 0x06, 0x5E, 0x42, 0x13, 0x01, 0x01, 0x4B, 0x4C, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x06, 0x02,
0x02, 0x06, 0x51, 0x0D, 0x33, 0x01, 0x01, 0x2F, 0x0F, 0x53, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x06, 0x02,
0x02, 0x06, 0x01, 0x3C, 0x07, 0x43, 0x01, 0x52, 0x0F, 0x2E, 0x13, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x06, 0x02,
0x02, 0x06, 0x01, 0x5F, 0x17, 0x27, 0x4E, 0x01, 0x49, 0x0D, 0x32, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x0