IsVector checks if the image type is a vector format.
()
| 59 | |
| 60 | // IsVector checks if the image type is a vector format. |
| 61 | func (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. |
| 70 | func (t Type) SupportsAlpha() bool { |