@param doc about scaleMode in Texture.fromCanvas