示例#1
0
// Sets the wand pixel depth.
func (mw *MagickWand) SetDepth(depth uint) error {
	C.MagickSetDepth(mw.mw, C.size_t(depth))
	return mw.GetLastError()
}
示例#2
0
// Sets the wand pixel depth.
func (mw *MagickWand) SetDepth(depth uint) error {
	ok := C.MagickSetDepth(mw.mw, C.size_t(depth))
	return mw.getLastErrorIfFailed(ok)
}