コード例 #1
0
ファイル: drawing_wand.go プロジェクト: qwo/abelana-gcp
// Sets the image resolution.
//
// xRes, yRes: the image x and y resolutions
func (dw *DrawingWand) SetFontResolution(xRes, yRes float64) error {
	C.DrawSetFontResolution(dw.dw, C.double(xRes), C.double(yRes))
	return dw.GetLastError()
}
コード例 #2
0
ファイル: drawing_wand.go プロジェクト: palaiyacw/imagick
// Sets the image resolution.
//
// xRes, yRes: the image x and y resolutions
func (dw *DrawingWand) SetFontResolution(xRes, yRes float64) error {
	ok := C.DrawSetFontResolution(dw.dw, C.double(xRes), C.double(yRes))
	return dw.getLastErrorIfFailed(ok)
}