Skip to content

Commit

Permalink
Alpha channel property
Browse files Browse the repository at this point in the history
  • Loading branch information
naithar committed Jan 16, 2018
1 parent 08234ad commit 458db50
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Sources/MagickWand/Wand/ImageWand/ImageWand+Colors.swift
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ extension ImageWand {
}
}

//TODO: alpha channel
public var hasAlphaChannel: Bool {
return MagickGetImageAlphaChannel(self.pointer).bool
}

// https://bugs.php.net/bug.php?id=73840
public func pixel(x: Int, y: Int) -> PixelWand? {
Expand Down
1 change: 0 additions & 1 deletion Sources/MagickWand/Wand/PixelWand/PixelWand+Color.swift
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ extension PixelWand {
let red = PixelGetRed(self.pointer)
let green = PixelGetGreen(self.pointer)
let blue = PixelGetBlue(self.pointer)
// MagickGetImageAlphaChannel

let alpha = PixelGetAlpha(self.pointer)

Expand Down

0 comments on commit 458db50

Please sign in to comment.