Core

Reply
Accepted Solution

How to use Sce.Pss.Core.Imaging.Image.Export? (What is albumname?)

How to use Sce.Pss.Core.Imaging.Image.Export?

How to set the parameters? 
I set filename =" /Application/image.png". Is this OK?
What is albumname?

 


Thank you.

 


I get the the following error.

-------------------------------------------------

Unhandled Exception: System.InvalidOperationException: native function returned error.
at Sce.Pss.Core.Error.ThrowNativeException (Int32 error) [0x00000] in <filename unknown>:0
at Sce.Pss.Core.Imaging.Image.Export (System.String albumname, System.String filename) [0x00000] in <filename unknown>:0

 

Please use plain text.

Re: How to use Sce.Pss.Core.Imaging.Image.Export? (What is albumname?)

Hi:

 

Did you set your image to be used in application on solution explorer?

Solution explorer-><your image>.png->right button->build action->content. This will we place your png in the album.

 

Cheers,

 

Please use plain text.

Re: How to use Sce.Pss.Core.Imaging.Image.Export? (What is albumname?)

Actually, I want to speed up "Sce.Pss.HighLevel.GameEngine2D.Base.FontMap" initialization. If the fontmap is too large, perhaps "DrawText()" in  "Sce.Pss.HighLevel.GameEngine2D.Base.FontMap" is heavy. In order to come off this, I want to export the fontmap image (Of course, I must take care the copy right.) and road it in next time.

 

In "Sce.Pss.HighLevel.GameEngine2D.Base.FontMap", the image is disposed. (image.Dispose():smileywink:

Please use plain text.

Re: How to use Sce.Pss.Core.Imaging.Image.Export? (What is albumname?)

Hi:

 

Ok, did you try to run your own font map generator if you want I can pass to you mines (well is part of a tool i'm working on ) but it will be free and use Gimp for that.

 

Cheers,

 

Please use plain text.

Re: How to use Sce.Pss.Core.Imaging.Image.Export? (What is albumname?)

@h_r_s_h, the Image.Export() method is used to export images from your application to the users photo/media gallery on their device. It sounds like you will want to use the File IO classes to write the data to the /Documents/ directory, using the data returned from Image.ToBuffer().

 

Hope this helps.

James

PlayStation®Mobile Dev Team
Please use plain text.

Re: How to use Sce.Pss.Core.Imaging.Image.Export? (What is albumname?)

Thank you, jamesnorman91. I could do it.

Please use plain text.
Announcements

Welcome to the PlayStation Mobile Developer Forums


This is a community for the discussion of technical topics with other developers and SCE engineers. Posting ideas/requests are also appreciated. Join the discussion!

PlayStation®Mobile開発者フォーラムでは世界中の開発者の皆様と一緒に、議論や情報交換が可能です。SCEも議論に参加し、皆様の開発をサポートします。アイデアやリクエストも大歓迎です。ぜひご参加ください。

PSM Developer Registration (for free) on PSM DevPortal is required to post on the forum.
Please sign out then sign in again to the forum and PSM DevPortal after you have completed the registration.

フォーラムへ投稿をするにはPSM DevPortalへの登録(無料)が必要です。
登録後はフォーラムと PSM DevPortalを一度ログアウトし、再度ログインしてください。