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