onevcat 8 anni fa
parent
commit
0704af8775
1 ha cambiato i file con 6 aggiunte e 1 eliminazioni
  1. 6 1
      Sources/ImageProcessor.swift

+ 6 - 1
Sources/ImageProcessor.swift

@@ -164,15 +164,17 @@ public struct RectCorner: OptionSet {
     }
     }
 }
 }
 
 
-/// Processor for adding an blend mode to images. Only CG-based images are supported.
 #if !os(macOS)
 #if !os(macOS)
+/// Processor for adding an blend mode to images. Only CG-based images are supported.
 public struct BlendImageProcessor: ImageProcessor {
 public struct BlendImageProcessor: ImageProcessor {
 
 
     /// Identifier of the processor.
     /// Identifier of the processor.
     /// - Note: See documentation of `ImageProcessor` protocol for more.
     /// - Note: See documentation of `ImageProcessor` protocol for more.
     public let identifier: String
     public let identifier: String
 
 
+    /// Blend Mode will be used to blend the input image.
     public let blendMode: CGBlendMode
     public let blendMode: CGBlendMode
+    /// Alpha will be used when blend image.
     public let alpha: CGFloat
     public let alpha: CGFloat
 
 
     /// Background color of the output image. If `nil`, it will stay transparent.
     /// Background color of the output image. If `nil`, it will stay transparent.
@@ -220,7 +222,10 @@ public struct CompositingImageProcessor: ImageProcessor {
     /// - Note: See documentation of `ImageProcessor` protocol for more.
     /// - Note: See documentation of `ImageProcessor` protocol for more.
     public let identifier: String
     public let identifier: String
 
 
+    /// Compositing operation will be used to the input image.
     public let compositingOperation: NSCompositingOperation
     public let compositingOperation: NSCompositingOperation
+
+    /// Alpha will be used when compositing image.
     public let alpha: CGFloat
     public let alpha: CGFloat
 
 
     /// Background color of the output image. If `nil`, it will stay transparent.
     /// Background color of the output image. If `nil`, it will stay transparent.