开发者

Nokia Qt: Save Image In Phone Memory

开发者 https://www.devze.com 2023-02-04 19:23 出处:网络
I am making App. that includes Picture Editing, After Editing I want to save this Image As jpg file in my phone memory.. Ho开发者_如何转开发w can i do this?

I am making App. that includes Picture Editing, After Editing I want to save this Image As jpg file in my phone memory.. Ho开发者_如何转开发w can i do this?

Any help?

Thanks..


I don't have a Symbian device to check, but AFAIK it should be something like e.g.

QString filename = "c:\\folder\\filename.jpg";
bool success = mypixmap.save(filename);

assuming you have Symbian capabilities to write to the directory. The success will be true if the save was successful and false otherwise, and if necessary you can mess with the compression quality factor - here's the documentation.

I'm rusty on Symbian permissions, you might need WriteUserData to get this to work.

0

精彩评论

暂无评论...
验证码 换一张
取 消