How to load a GIF image from resource using GDI+?

  • Thread starter Thread starter Yan Yang
  • Start date Start date
Y

Yan Yang

Guest
I've tried the approach described in this link to load a GIF image from a resource ID, but only the first frame is displayed.

I check the number of frames with the code below, it is always 1 frame, but actually the GIF has 2 frames.

UINT count = m_pImage->GetFrameDimensionsCount();

I guess there might be somethng wrong with loading the GIF from resource. Could you please let me know how to load it correctly?

Thanks in advance.

Continue reading...
 
Back
Top