简体   繁体   English

如何在Flash as3中设置壁纸?

[英]How set wallpaper in flash as3?

Who can help me to make the photo On the desktop ..For example, to save the image in the stage in Flash and make it a background in desktop(in flash function to make an image as wallpaper)or background in phone Using the button thanks.. 谁可以帮助我在桌面上制作照片,例如,将图像保存在Flash中的舞台中,并使其在桌面中作为背景(在Flash功能中将图像制成墙纸)或在手机中,使用按钮谢谢..

举个例子

It's not possible to set an image in flash to become your desktops wall paper. 无法将图片设置为Flash成为您的桌面墙纸。 You can adjust the images size and parameters via flash and export, then you will have to set it as our desktop wallpaper manually. 您可以通过Flash和导出来调整图像的大小和参数,然后必须将其手动设置为我们的桌面墙纸。

For the desktop platform, you can encode the image into an OS-readable format (PNG, JPG, others depend on OS) and call FileReference.save() with the encoded ByteArray . 对于桌面平台,您可以将图像编码为OS可读格式(PNG,JPG,其他取决于OS),并使用编码的ByteArray调用FileReference.save() This will invoke the OS-specific dialogue of "Save as" where the user will have to input the proper name for the file with its extension (if OS requires an extension), so you will have to hint the user of what type of file he will receive. 这将调用特定于操作系统的对话框“另存为”,在该对话框中,用户必须输入带有扩展名的文件的正确名称(如果操作系统需要扩展名),因此您将必须提示用户哪种文件类型他会收到的。 For this, you can name your button "Save as PNG", for example. 为此,例如,您可以将按钮命名为“另存为PNG”。 A code example is here in this question . 这个问题的代码示例在这里

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM