Example #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
}
Example #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
}