コード例 #1
0
ファイル: magick_wand_prop.go プロジェクト: qwo/abelana-gcp
// 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
ファイル: magick_wand_prop.go プロジェクト: palaiyacw/imagick
// 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)
}