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

Method IsVector

imagetype/type.go:61–67  ·  view source on GitHub ↗

IsVector checks if the image type is a vector format.

()

Source from the content-addressed store, hash-verified

59
60// IsVector checks if the image type is a vector format.
61func (t Type) IsVector() bool {
62 desc := GetTypeDesc(t)
63 if desc != nil {
64 return desc.IsVector
65 }
66 return false
67}
68
69// SupportsAlpha checks if the image type supports alpha transparency.
70func (t Type) SupportsAlpha() bool {

Callers 7

TestTypePropertiesFunction · 0.80
TestMatrixMethod · 0.80
calcScaleMethod · 0.80
vectorGuardScaleMethod · 0.80
canScaleOnLoadMethod · 0.80
scaleOnLoadMethod · 0.80
checkImageSizeMethod · 0.80

Calls 1

GetTypeDescFunction · 0.85

Tested by 2

TestTypePropertiesFunction · 0.64
TestMatrixMethod · 0.64