minor fixes
This commit is contained in:
1 parent
218ee0960a
commit
42f7fb1d85
2 files changed
+3
-5
No files matched your search
@@ -59,6 +59,7 @@ extension RCImageDecoder {
|
||||
points.append(point)
|
||||
}
|
||||
let image = try fixPerspective(pointer, points: points)
|
||||
NotificationCenter.default.post(name: NSNotification.Name.init("image"), object: image)
|
||||
let bits = decode(image)
|
||||
return bits
|
||||
}
|
||||
@@ -200,12 +201,9 @@ extension RCImageDecoder {
|
||||
}
|
||||
|
||||
extension RCImageDecoder {
|
||||
private func generateContext(data: UnsafeMutableRawPointer? = nil) -> CGContext? {
|
||||
private func generateContext(data: UnsafeMutableRawPointer?) -> CGContext? {
|
||||
return CGContext(data: data, width: self.size, height: self.size, bitsPerComponent: 8, bytesPerRow: self.size, space: CGColorSpaceCreateDeviceGray(), bitmapInfo: CGImageAlphaInfo.none.rawValue)
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
extension RCImageDecoder {
|
||||
|
||||
@@ -26,7 +26,7 @@ public struct RCImage {
|
||||
|
||||
public var message: String
|
||||
public var size = CGFloat(300)
|
||||
public var tintColors: [UIColor] = [.orange, .gray]//[.orange, .magenta]
|
||||
public var tintColors: [UIColor] = [.orange, .magenta]
|
||||
public var attachmentImage: UIImage?
|
||||
public var isTransparent = false
|
||||
public var gradientType = GradientType.linear(angle: CGFloat.pi / 2)
|
||||
|
||||
Reference in new issue
Block a user