How can I change the dispose method of gif frame?

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
sunng1

How can I change the dispose method of gif frame?

Post by sunng1 »

hi

I'm using MagickCore to create gif picture, the dispose method of every frame is 1 by default,

How can I change the dispose method ?

thanks
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: How can I change the dispose method of gif frame?

Post by magick »

With MagickCore you can set the image structure members directly, for example:

Code: Select all

  image->dispose=BackgroundDispose;
  status = WriteImage( image_info, image );
Post Reply