MCPcopy
hub / github.com/gographics/imagick / b2i

Function b2i

imagick/conversions.go:14–19  ·  view source on GitHub ↗

Convert a boolean to a integer

(boolean bool)

Source from the content-addressed store, hash-verified

12
13// Convert a boolean to a integer
14func b2i(boolean bool) C.MagickBooleanType {
15 if boolean {
16 return C.MagickBooleanType(1)
17 }
18 return C.MagickBooleanType(0)
19}
20
21func cStringArrayToStringSlice(p **C.char) []string {
22 var strings []string

Callers 15

SetAntialiasMethod · 0.85
SetStrokeAntialiasMethod · 0.85
SetTextAntialiasMethod · 0.85
AppendImagesMethod · 0.85
ClipImagePathMethod · 0.85
ContrastImageMethod · 0.85
DistortImageMethod · 0.85
FloodfillPaintImageMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected