Browse Source

no message

Hongtae Kim 6 years ago
parent
commit
ed14f51f00
2 changed files with 6 additions and 9 deletions
  1. 5
    8
      TestApp1/TestApp1.cpp
  2. 1
    1
      TestApp1/TestApp1.vcxproj

+ 5
- 8
TestApp1/TestApp1.cpp View File

@@ -15,16 +15,13 @@ public:
15 15
 	void OnInitialize(void) override
16 16
 	{
17 17
 		DKLogD("%s", DKGL_FUNCTION_NAME);
18
-		window = DKWindow::Create("DefaultWindow");
19
-		window->Activate();
20 18
 
21
-		window->AddEventHandler(this,
22
-			DKFunction([this](const DKWindow::WindowEvent& e) {
23
-			if (e.type == DKWindow::WindowEvent::WindowClosed)
24
-				DKApplication::Instance()->Terminate(0);
25
-		}),
26
-			NULL, NULL);
19
+		DKImage image;
20
+		image.LoadFromFile("C:\\Users\\hong\\Desktop\\test\\1.png");
21
+		DKObject<DKData> data = image.EncodeData("png");
22
+		data->WriteToFile("C:\\Users\\hong\\Desktop\\test\\2.png", true);
27 23
 
24
+		Terminate(0);
28 25
 	}
29 26
 	void OnTerminate(void) override
30 27
 	{

+ 1
- 1
TestApp1/TestApp1.vcxproj View File

@@ -22,7 +22,7 @@
22 22
     <ProjectGuid>{AE0AF61D-F069-4AFA-AE24-A75C6A233B37}</ProjectGuid>
23 23
     <Keyword>Win32Proj</Keyword>
24 24
     <RootNamespace>TestApp1</RootNamespace>
25
-    <WindowsTargetPlatformVersion>10.0.14393.0</WindowsTargetPlatformVersion>
25
+    <WindowsTargetPlatformVersion>10.0.16299.0</WindowsTargetPlatformVersion>
26 26
   </PropertyGroup>
27 27
   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
28 28
   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">