Search found 2 matches

by Anders
Thu Mar 17, 2011 8:36 am
Forum: Support
Topic: EOutOfResources with GIF images
Replies: 9
Views: 28195

yes, it is possible, but it requires the modification in the component source on each update (that is problematic). Then ask Sergey to add it to the TRichView source. It's an easy fix (although it's a hack): Canvas.StretchDraw(Image, ...); if (Image is TGIFImage) then TGIFImage(Image).Dormant; Is ...
by Anders
Thu Mar 17, 2011 2:18 am
Forum: Support
Topic: EOutOfResources with GIF images
Replies: 9
Views: 28195

An easy solution might be to call TGIFImage.Dormant after TGIFImage.Draw.

TGIFImage.Dormant releases all cached resources so it should reduce resource use but will probably also increase the CPU usage on redraws.