Browse Source

no message

Hongtae Kim 7 years ago
parent
commit
546f505145
1 changed files with 2 additions and 3 deletions
  1. 2
    3
      TestApp1/TestApp1.cpp

+ 2
- 3
TestApp1/TestApp1.cpp View File

16
 	{
16
 	{
17
 		DKLogD("%s", DKGL_FUNCTION_NAME);
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
 		data->WriteToFile("C:\\Users\\hong\\Desktop\\test\\2.png", true);
21
 		data->WriteToFile("C:\\Users\\hong\\Desktop\\test\\2.png", true);
23
 
22
 
24
 		Terminate(0);
23
 		Terminate(0);