Пример #1
0
 internal static IDisposable SaveOpacity(PdfRenderContext context, double newOpacity)
 {
     if (context.opacity != newOpacity)
     {
         DisposableOpacity disposableOpacity = new DisposableOpacity(context);
         context.opacity = newOpacity;
         return disposableOpacity;
     }
     else
     {
         return null;
     }
 }
Пример #2
0
 internal static IDisposable SaveOpacity(PdfRenderContext context, double newOpacity)
 {
     if (context.opacity != newOpacity)
     {
         DisposableOpacity disposableOpacity = new DisposableOpacity(context);
         context.opacity = newOpacity;
         return(disposableOpacity);
     }
     else
     {
         return(null);
     }
 }