MCPcopy Create free account
hub / github.com/SolarLune/masterplan / AsImage

Method AsImage

resources.go:328–331  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

326}
327
328func (resource *Resource) AsImage() Image {
329 resource.Parse()
330 return resource.Data.(Image)
331}
332
333func (resource *Resource) IsGIF() bool {
334 if resource.FinishedDownloading() {

Callers 8

DestroyMethod · 0.95
CreateGridTextureMethod · 0.80
DrawGridMethod · 0.80
NewImageContentsFunction · 0.80
UpdateMethod · 0.80
DrawMethod · 0.80
mainFunction · 0.80
ConstructMenusFunction · 0.80

Calls 1

ParseMethod · 0.95

Tested by

no test coverage detected