[BUIW] - IWIDGET_Animate () Returns EFAILED. | developer.brewmp.com [BUIW] - IWIDGET_Animate () Returns EFAILED. | developer.brewmp.com

Developer

[BUIW] - IWIDGET_Animate () Returns EFAILED.

Forums:

For previewing a downloaded image file, we create an instance of AEECLSID_BITMAPWIDGET and set a Bitmap Image (we convert any downloaded image to a bitmap) to it using IWIDGET_SetBitmap (). If the animated property of the image file is set, we call IWIDGET_Animate () to animate it. But, currently this API returns EFAILED for any animated image file in this case, and the image file is not being animated while previewing it.

Does anyone have any idea as to what the problem could be?

wrangler_brew wrote:For previewing a downloaded image file, we create an instance of AEECLSID_BITMAPWIDGET and set a Bitmap Image (we convert any downloaded image to a bitmap) to it using IWIDGET_SetBitmap (). If the animated property of the image file is set, we call IWIDGET_Animate () to animate it. But, currently this API returns EFAILED for any animated image file in this case, and the image file is not being animated while previewing it.
Does anyone have any idea as to what the problem could be?
IWIDGET_Animate works only for image file having animation like GIf or BCI..

wrangler_brew wrote:For previewing a downloaded image file, we create an instance of AEECLSID_BITMAPWIDGET and set a Bitmap Image (we convert any downloaded image to a bitmap) to it using IWIDGET_SetBitmap (). If the animated property of the image file is set, we call IWIDGET_Animate () to animate it. But, currently this API returns EFAILED for any animated image file in this case, and the image file is not being animated while previewing it.
Does anyone have any idea as to what the problem could be?
IWIDGET_Animate works only for image file having animation like GIf or BCI..

I am calling IWIDGET_Animate () only for animated images like GIF or BCI, i.e. when the bAnimated property of AEEImageInfo is set to TRUE. But, still then this API returns EFAILED and the image doesn't animate.

I am calling IWIDGET_Animate () only for animated images like GIF or BCI, i.e. when the bAnimated property of AEEImageInfo is set to TRUE. But, still then this API returns EFAILED and the image doesn't animate.

You are converting the GIF or BCI to a BMP, which causes it to lose the animation information (since BMP doesn't support animation). Use an image widget instead.
-Erik

You are converting the GIF or BCI to a BMP, which causes it to lose the animation information (since BMP doesn't support animation). Use an image widget instead.
-Erik

Hi,
Is it possible by any means to retain the animation information using a Bitmap? I am currently using a Bitmap to display all image file types. If it is not possible, I need to redo and implement the whole logic yet once again.

Hi,
Is it possible by any means to retain the animation information using a Bitmap? I am currently using a Bitmap to display all image file types. If it is not possible, I need to redo and implement the whole logic yet once again.