为 BBM 显示图片创建动画 gif
想知道如何为 Blackberry Messenger 创建动画 gif,我使用 Total Video Converter 将视频转换为动画 gif,它在黑莓图片目录中正确显示为 gif 图像,但当用作黑莓信使显示图片时,它确实显示无法播放并且显示未对齐,我见过几个正确显示的黑莓信使动画 gif 显示图片(即播放并正确对齐),有没有办法从视频创建动画 gif,该视频将作为黑莓信使显示图片播放
Would want to know how to create an animated gif for Blackberry Messenger, i converted a video to an animated gif using Total Video Converter, it shows properly as a gif image on blackberry picture directory but when used as a blackberry messenger display pic, it does not play and appears misaligned, I have seen several blackberry messenger animated gif display pictures that show properly(i.e play and are properly aligned), is there a way to create animated gif from a video that would play as a blackberry messenger display picture
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
BlackBerry 智能手机应用程序编程接口 (API) 集中的 BitmapField 可用于显示图像;但是,它只会显示 GIF 动画的第一帧。网页内容中的动画 GIF 可以使用浏览器字段显示;但是,如果您只需要显示动画图像,这可能会给您的应用程序带来不必要的开销。
以下示例扩展 BitmapField 以创建一个名为 AnimatedGIFField 的新类。此类可以添加到 Screen 并接受 GIFEncodedImage,并将为其设置动画。
注意:当应用程序内置到
中时,添加到项目中的图像会
。添加动画 GIF 时这可能会导致问题,因为此过程会删除动画。此问题有两种解决方法。自动
转换为可移植网络图形 (PNG) 格式
.cod 文件第一种方法是在 BlackBerry® Java® 开发环境 (BlackBerry JDE) 中打开应用程序的“项目属性”,单击“编译”选项卡并选中“不将图像文件转换为 png”复选框。这将阻止转换应用程序中的所有图像,如果项目中的图像格式不是 GIF 和 PNG,则转换效率可能会很低。
针对单个图像的解决方法是将 GIF 图像的扩展名从 .gif 更改为其他名称(例如 .bin)。这将阻止 RIM 应用程序编译器 (RAPC) 将图像转换为 .png。
您还可以从此处下载该文件的 .java 文件
The BitmapField within the BlackBerry smartphone application programming interface (API) set can be used to display images; however, it will only show the first frame of an animated GIF. Animated GIFs within web content can be displayed using a browser field; however, this can introduce unnecessary overhead into your application if you only need to display an animated image.
The following sample extends BitmapField to create a new class called AnimatedGIFField. This class can be added to a Screen and accepts a GIFEncodedImage, which it will animate.
NOTE: Images added to a project are
automatically
converted into thePortable Network Graphics (PNG) format
when the application is built into a.cod file
. This can cause an issue when adding an animated GIF because this process will strip out the animation. There are two workaround options for this issue.The first is to open the Project Properties for your application in the BlackBerry® Java® Developement Environment (BlackBerry JDE), click on the compile tab and check the Don’t convert image files to png checkbox. This will prevent all images in the application from being converted, which can be inefficient if you have images in formats other than GIF and PNG in your project.
The workaround for an individual image is to change the extension of your GIF image from .gif to something else (such as .bin). This will prevent the RIM Application Program Compiler (RAPC) from converting the image into a .png.
You can also download this as a .java file from here
您所要做的就是..
如果您还没有下载 photoscape http://www.photoscape.org/ps/main/download.php <<这是安全的..在此处输入图像描述
打开它,然后按制作 gif,然后将图片拖到那里。
一旦你得到你的照片。 按尺寸并选择“设置画布尺寸”
将高度和高度设置为 150 或更小,并且 gif 必须是正方形。
然后你将它保存到你的黑莓上,它应该可以工作
All you have to do is..
if you don't already have it download photoscape http://www.photoscape.org/ps/main/download.php << this one is safe..enter image description here
Open it and then press on make a gif and then just drag pictures there.
once you got your pictures. Press on the size and select "set canvas size"
Set both with and height on 150 or smaller and the gif MUST be a square.
Then you save it to your blackberry and it should work
GIF 画布必须是正方形,且大小不得超过 31Kb。
A GIF canvas must be square and it's size must not exceed than 31Kb.
老旧但仅供记录,您可以在 http://www.flashdp.net
Old but just for the record, you can create animated bbm display pictures online for free at http://www.flashdp.net