コード例 #1
0
        public static void PushLayer(this ID2D1DeviceContext context, D2D1_LAYER_PARAMETERS1 parameters)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            context.PushLayer(ref parameters, null);
        }
コード例 #2
0
 public static void PushLayer(this IComObject <ID2D1DeviceContext> context, D2D1_LAYER_PARAMETERS1 parameters) => PushLayer(context?.Object, parameters);