Skip to content

Commit

Permalink
Add ParseAbsoluteGeometry(string, *RectangleInfo)
Browse files Browse the repository at this point in the history
  • Loading branch information
beetlebugorg committed Feb 12, 2024
1 parent ca12631 commit 0a3cd06
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions imagick/geometry.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 0a3cd06

Please sign in to comment.