delphi - Rescale AnimatedGIF at run-time according to Windows DPI Display Settings? -


in delphi xe2, have jvgifanimator component (from jvcl) on form. now, when run program on computer windows dpi display settings set 125%, while other gui elements , system text scaled 125%, gif animation unfortunately not resized. gif embedded in jvgifanimator component tjvgifanimator.image property @ design time tjvgifimage.

is there way rescale embedded gif @ run-time according windows dpi display settings?

you'll have 1 way or another. there nothing built in automatically rescale. options include:

  1. decode each frame of gif. use graphics library resize images. create new gif resized images.
  2. provide multiple gifs @ different sizes , use 1 size closest target.

of these options, latter better. resizing on fly lead horrid visual artifacts , aliasing. animation dreadful. not mention coding involved. choose option 2.

in fact, issue no different rasterized animations rasterized static images. need provide multiple glyphs toolbar buttons, need supply multiple versions of rasterized animations.


Comments

Popular posts from this blog

C# random value from dictionary and tuple -

cgi - How do I interpret URLs without extension as files rather than missing directories in nginx? -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -