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?
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
Solved! Go to solution
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.
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()
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.
@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.