diff --git a/imagick/geometry.go b/imagick/geometry.go index 63224c3..a2dbe41 100644 --- a/imagick/geometry.go +++ b/imagick/geometry.go @@ -13,6 +13,13 @@ func ParseGeometry(geometry string, info *GeometryInfo) uint { return uint(flags) } +func ParseAbsoluteGeometry(geometry string, info *RectangleInfo) uint { + var gi C.RectangleInfo + flags := C.ParseAbsoluteGeometry(C.CString(geometry), &gi) + *info = *newRectangleInfo(&gi) + return uint(flags) +} + func ParseMetaGeometry(geometry string, x *int, y *int, width *uint, height *uint) uint { var info C.RectangleInfo