a helper function for creating a texture from this canvas 's image , and then disposing this canvas . this is useful for situations where you create a canvas , draw something in it , turn it into a texture and then never use the canvas again . concode_field_sep Image image concode_elem_sep boolean isDirty concode_elem_sep float width concode_elem_sep Graphics gfx concode_elem_sep float height concode_field_sep Canvas fillPath concode_elem_sep Canvas rotate concode_elem_sep Canvas drawPoint concode_elem_sep Canvas setStrokeWidth concode_elem_sep Canvas save concode_elem_sep Canvas setFillGradient concode_elem_sep Canvas scale concode_elem_sep Canvas fillRect concode_elem_sep Canvas translate concode_elem_sep Canvas transform concode_elem_sep Canvas strokePath concode_elem_sep Gradient createGradient concode_elem_sep Canvas setStrokeColor concode_elem_sep Canvas strokeRect concode_elem_sep Path createPath concode_elem_sep Canvas fillText concode_elem_sep Canvas setCompositeOperation concode_elem_sep Object gc concode_elem_sep void close concode_elem_sep Canvas strokeRoundRect concode_elem_sep float height concode_elem_sep Canvas setFillPattern concode_elem_sep Canvas strokeText concode_elem_sep Canvas fillRoundRect concode_elem_sep Canvas restore concode_elem_sep Canvas clipRect concode_elem_sep Canvas drawText concode_elem_sep Canvas setLineJoin concode_elem_sep Canvas clear concode_elem_sep Canvas setAlpha concode_elem_sep void draw concode_elem_sep void draw concode_elem_sep Canvas draw concode_elem_sep Canvas draw concode_elem_sep Canvas draw concode_elem_sep Canvas drawLine concode_elem_sep Canvas clearRect concode_elem_sep Canvas setFillColor concode_elem_sep Canvas drawCentered concode_elem_sep Canvas fillCircle concode_elem_sep Canvas setLineCap concode_elem_sep float width concode_elem_sep Canvas setMiterLimit concode_elem_sep Canvas strokeCircle concode_elem_sep Image snapshot concode_elem_sep Canvas clip
Texture function ( Texture . Config arg0 ) { try { return image . createTexture ( arg0 ) ; } finally { close ( ) ; } }