Hello
Thank you for all.
I want to draw a scaled GIF SUB(s) Images with IMAGE widget.
I set a Callback of IMAGE, and use GUI_GIF_DrawSubScaled at WM_Paint.
but the Transparency of My GIF Animated has loss.
void cbAnimation(WM_MESSAGE* pMsg)
{
const tAnimation *rAnimation;
switch (pMsg->MsgId)
{
case WM_PAINT:
GUI_GIF_DrawSubScaled(Image, Size, 0, 0, Frame, 1, 2);
break;
default: WM_DefaultProc(pMsg);
}
}
hwnd= IMAGE_CreateUser(0, 0, 100, 100, 0, WM_CF_SHOW , IMAGE_CF_MEMDEV, 0, sizeof(void *));
IMAGE_SetGIF(hwnd, Image, Size);
(the variables are use only for explaining.)
Also i try with Window, the result was same
whould you send me an example for how to draw a correct scaled GIF sub Image?
At attachment picture(s), there are two type of GIF Animated.
Best Regards.
Thank you for all.
I want to draw a scaled GIF SUB(s) Images with IMAGE widget.
I set a Callback of IMAGE, and use GUI_GIF_DrawSubScaled at WM_Paint.
but the Transparency of My GIF Animated has loss.
void cbAnimation(WM_MESSAGE* pMsg)
{
const tAnimation *rAnimation;
switch (pMsg->MsgId)
{
case WM_PAINT:
GUI_GIF_DrawSubScaled(Image, Size, 0, 0, Frame, 1, 2);
break;
default: WM_DefaultProc(pMsg);
}
}
hwnd= IMAGE_CreateUser(0, 0, 100, 100, 0, WM_CF_SHOW , IMAGE_CF_MEMDEV, 0, sizeof(void *));
IMAGE_SetGIF(hwnd, Image, Size);
(the variables are use only for explaining.)
Also i try with Window, the result was same
whould you send me an example for how to draw a correct scaled GIF sub Image?
At attachment picture(s), there are two type of GIF Animated.
Best Regards.