MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / GetInt

Method GetInt

vips/vips.go:455–462  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

453}
454
455func (img *Image) GetInt(name string) (int, error) {
456 var i C.int
457
458 if C.vips_image_get_int(img.VipsImage, cachedCString(name), &i) != 0 {
459 return 0, Error()
460 }
461 return int(i), nil
462}
463
464func (img *Image) GetIntDefault(name string, def int) (int, error) {
465 if C.vips_image_get_typeof(img.VipsImage, cachedCString(name)) == 0 {

Callers 15

GetIntDefaultMethod · 0.95
MaxSrcResolutionMethod · 0.45
MaxSrcFileSizeMethod · 0.45
MaxAnimationFramesMethod · 0.45
MaxResultDimensionMethod · 0.45
WidthMethod · 0.45
HeightMethod · 0.45
MinWidthMethod · 0.45
MinHeightMethod · 0.45
RotateMethod · 0.45
PaddingTopMethod · 0.45

Calls 2

cachedCStringFunction · 0.85
ErrorFunction · 0.70

Tested by

no test coverage detected