func (i *Image) viewportSize() (int, int) {
	if i.screen {
		return i.width, i.height
	}
	return graphics.InternalImageSize(i.width), graphics.InternalImageSize(i.height)
}
func (i *Image) viewportSize() (int, int) {
	if i.screen {
		return i.width, i.height
	}
	return graphics.InternalImageSize(i.width), graphics.InternalImageSize(i.height)
}
func ( i * Image ) viewportSize ( ) ( int , int ) { if i . screen { return i . width , i . height } return graphics . InternalImageSize ( i . width ) , graphics . InternalImageSize ( i . height ) }
// viewportSize must be called from the main thread.
viewportSize must be called from the main thread .