 
 	public func get(pixel: Point) -> Color {
 		let color = gdImageGetTrueColorPixel(internalImage, Int32(pixel.x), Int32(pixel.y))
-
-		let a = Double((color >> 24) & 0xFF)
-		let r = Double((color >> 16) & 0xFF)
-		let g = Double((color >> 8) & 0xFF)
-		let b = Double(color & 0xFF)
-
-		return Color(red: r / 255, green: g / 255, blue: b / 255, alpha: 1 - (a / 127))
+        return Color(hex: Int(color), leadingAlpha: true)
 	}
 
 	public func strokeEllipse(center: Point, size: Size, color: Color) {

	public static let black = Color(red: 0, green: 0, blue: 0, alpha: 1)
	public static let white = Color(red: 1, green: 1, blue: 1, alpha: 1)
}

	return lhs.width == rhs.width && lhs.height == rhs.height
}

// MARK: - Color

public class Color {

	public var redComponent: Double
	public var greenComponent: Double
	public var blueComponent: Double
