|
@@ -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);
|