Hongtae Kim 7 gadus atpakaļ
vecāks
revīzija
546f505145
1 mainītis faili ar 2 papildinājumiem un 3 dzēšanām
  1. 2
    3
      TestApp1/TestApp1.cpp

+ 2
- 3
TestApp1/TestApp1.cpp Parādīt failu

@@ -16,9 +16,8 @@ public:
16 16
 	{
17 17
 		DKLogD("%s", DKGL_FUNCTION_NAME);
18 18
 
19
-		DKImage image;
20
-		image.LoadFromFile("C:\\Users\\hong\\Desktop\\test\\1.png");
21
-		DKObject<DKData> data = image.EncodeData("png");
19
+		DKObject<DKImage> image = DKImage::Create("C:\\Users\\hong\\Desktop\\test\\1.png");
20
+		DKObject<DKData> data = image->EncodeData("png", NULL);
22 21
 		data->WriteToFile("C:\\Users\\hong\\Desktop\\test\\2.png", true);
23 22
 
24 23
 		Terminate(0);