Core

Reply
27 Jun 2012
By: h_r_s_h Member 24 Posts
Level 2
Offline
Accepted Solution

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

5 Replies 425 Views Created 27-06-2012

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.
Message 1 of 6 (425 Views)
Reply
0 Kudos
Level 7
 

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.
Message 2 of 6 (412 Views)
Reply
0 Kudos
Level 2
 

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.
Message 3 of 6 (409 Views)
Reply
0 Kudos
Level 7
 

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.
Message 4 of 6 (403 Views)
Reply
0 Kudos
Level 6
 

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.
Message 5 of 6 (388 Views)
Reply
Level 2
 

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

Thank you, jamesnorman91. I could do it.

Please use plain text.
Message 6 of 6 (365 Views)
Reply
0 Kudos