func (ic *ImageContents) handleRotation() { if ic.Resource != nil && ic.Card.Properties.Has("rotate") { angle := ic.Card.Properties.Get("rotate").AsFloat() if angle != 0 { if ic.Resource.IsTexture() { surf := ic.Resource.AsImage().Surface pixels := surf.Pixels() newSurf, err := s
()
| 1594 | // } |
| 1595 | |
| 1596 | func (ic *ImageContents) ValidResource() bool { |
| 1597 | return ic.Resource != nil && ic.Resource.FinishedDownloading() && (ic.Resource.IsGIF() || ic.Resource.IsTexture()) |
| 1598 | } |
| 1599 | |
| 1600 | func (ic *ImageContents) LoadFile() { |
| 1601 |
no test coverage detected