示例#1
0
// Returns the size associated with the magick wand.
func (mw *MagickWand) GetSize() (cols, rows uint, err error) {
	var cc, cr C.size_t
	C.MagickGetSize(mw.mw, &cc, &cr)
	cols, rows, err = uint(cc), uint(cr), mw.GetLastError()
	return
}
示例#2
0
// Returns the size associated with the magick wand.
func (mw *MagickWand) GetSize() (cols, rows uint, err error) {
	var cc, cr C.size_t
	ok := C.MagickGetSize(mw.mw, &cc, &cr)
	cols, rows, err = uint(cc), uint(cr), mw.getLastErrorIfFailed(ok)
	return
}