예제 #1
0
// Returns the size offset associated with the magick wand.
func (mw *MagickWand) GetSizeOffset() (offset int, err error) {
	var co C.ssize_t
	C.MagickGetSizeOffset(mw.mw, &co)
	offset, err = int(co), mw.GetLastError()
	return
}
예제 #2
0
// Returns the size offset associated with the magick wand.
func (mw *MagickWand) GetSizeOffset() (offset int, err error) {
	var co C.ssize_t
	ok := C.MagickGetSizeOffset(mw.mw, &co)
	offset, err = int(co), mw.getLastErrorIfFailed(ok)
	return
}