]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Wed, 1 Oct 2014 13:11:19 +0000 (13:11 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Wed, 1 Oct 2014 13:11:19 +0000 (13:11 +0000)
MagickCore/channel.c
MagickCore/image.h
MagickCore/option.c

index abd2a13b427da80630e49d92611a59940a35fd50..81fcf4d3466d0a3291867971d8ad7b147afca7f0 100644 (file)
@@ -1140,6 +1140,11 @@ MagickExport MagickBooleanType SetImageAlphaChannel(Image *image,
       image_view=DestroyCacheView(image_view);
       return(status);
     }
+    case DiscreteAlphaChannel:
+    {
+      image->alpha_trait=UpdatePixelTrait;
+      break;
+    }
     case ExtractAlphaChannel:
     {
       status=CompositeImage(image,image,AlphaCompositeOp,MagickTrue,0,0,
index f2d4dd303471720bcb193f004389458e3e93ec7c..5457f51c39aadd89eae42c7ce42114fc4ccdfaf2 100644 (file)
@@ -36,6 +36,7 @@ typedef enum
   BackgroundAlphaChannel,
   CopyAlphaChannel,
   DeactivateAlphaChannel,
+  DiscreteAlphaChannel,
   DisassociateAlphaChannel,
   ExtractAlphaChannel,
   OpaqueAlphaChannel,
index 6502972af2fd63afc66be34febf4f79294d9006a..773727cbbb65e02f849917712102750b7a88f548 100644 (file)
@@ -101,6 +101,7 @@ static const OptionInfo
     { "Background", BackgroundAlphaChannel, UndefinedOptionFlag, MagickFalse },
     { "Copy", CopyAlphaChannel, UndefinedOptionFlag, MagickFalse },
     { "Deactivate", DeactivateAlphaChannel, UndefinedOptionFlag, MagickFalse },
+    { "Discrete", DiscreteAlphaChannel, UndefinedOptionFlag, MagickFalse },
     { "Disassociate", DisassociateAlphaChannel, UndefinedOptionFlag, MagickFalse },
     { "Extract", ExtractAlphaChannel, UndefinedOptionFlag, MagickFalse },
     { "Off", DeactivateAlphaChannel, UndefinedOptionFlag, MagickFalse },