Skip to content

Commit

Permalink
Add im7 core GetDelegates() and GetFeatures()
Browse files Browse the repository at this point in the history
  • Loading branch information
coderkun committed May 21, 2024
1 parent fe73fb6 commit f26bcf3
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions imagick/magick_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,26 @@
package imagick

/*
#include <MagickCore/MagickCore.h>
#include <MagickWand/MagickWand.h>
*/
import "C"
import "unsafe"

// Returns the ImageMagick delegates as a string constant.
func GetDelegates() (delegates string) {
csdelegates := C.GetMagickDelegates()

return C.GoString(csdelegates)
}

// Returns the ImageMagick features as a string constant.
func GetFeatures() (features string) {
csfeatures := C.GetMagickFeatures()

return C.GoString(csfeatures)
}

// Returns the ImageMagick API copyright as a string constant.
func GetCopyright() string {
cstr := C.MagickGetCopyright()
Expand Down

0 comments on commit f26bcf3

Please sign in to comment.