Mercurial > octave-libtiff
diff scripts/image/imwrite.m @ 17855:bfbe5dcc9943
imwrite: implement DisposalMethod option.
* __magick_read__.cc (F__magick_write__): set gifDisposeMethod() when
writing an image to implement the DisposalMethod option. Set all the
options in a single option rather than a loop per option.
(init_reverse_disposal_methods): new method to return a reversed std::map
of the disposal methods.
(init_disposal_methods): move up, to be closer to the new
init_reverse_disposal_methods()
* private/__imwrite__.m: input check for the new option DisposalMethod and
set its default.
* imwrite.m: document new option.
author | Carnë Draug <carandraug@octave.org> |
---|---|
date | Tue, 05 Nov 2013 07:05:30 +0000 |
parents | adb0ba0d0c13 |
children | fcd87f68af4f 30aa4e85f8d5 |
line wrap: on
line diff
--- a/scripts/image/imwrite.m Tue Nov 05 05:48:56 2013 +0000 +++ b/scripts/image/imwrite.m Tue Nov 05 07:05:30 2013 +0000 @@ -54,6 +54,13 @@ ## equal to the number of frames in @var{im}. The value is in seconds, must ## be between 0 and 655.35, and defaults to 0.5. ## +## @item DisposalMethod +## For formats that accept animations (such as GIF), controls what happens +## to a frame before drawing the next one. Its value can be one of the +## following strings: "doNotSpecify" (default); "leaveInPlace"; "restoreBG"; +## and "restorePrevious", or a cell array of those string with length equal +## to the number of frames in @var{img}. +## ## @item LoopCount ## For formats that accept animations (such as GIF), controls how many times ## the sequence is repeated. A value of Inf means an infinite loop (default),