diff --git a/MagickCore/annotate.c b/MagickCore/annotate.c
index 4d48d7e..b26822c 100644
--- a/MagickCore/annotate.c
+++ b/MagickCore/annotate.c
@@ -1285,7 +1285,7 @@
     {
       if (image->storage_class != DirectClass)
         (void) SetImageStorageClass(image,DirectClass,exception);
-      if (image->matte == MagickFalse)
+      if (image->alpha_trait != BlendPixelTrait)
         (void) SetImageAlphaChannel(image,OpaqueAlphaChannel,exception);
     }
   direction=1.0;
@@ -1818,9 +1818,9 @@
       /*
         Render fill color.
       */
-      if (image->matte == MagickFalse)
+      if (image->alpha_trait != BlendPixelTrait)
         (void) SetImageAlphaChannel(image,OpaqueAlphaChannel,exception);
-      if (annotate_image->matte == MagickFalse)
+      if (annotate_image->alpha_trait != BlendPixelTrait)
         (void) SetImageAlphaChannel(annotate_image,OpaqueAlphaChannel,
           exception);
       fill_color=draw_info->fill;