Resizes the original texture image to a new size. This alters the image that the texture renders so all entities that use this texture will output the newly resized version of the image.
resize (Numberx, Numbery, BooleandontDraw)
NumberxThe new width.
NumberyThe new height.
BooleandontDrawIf true the resized image will not be drawn to the texture canvas. Useful for just resizing the texture canvas and not the output image. Use in conjunction with the applyFilter() and preFilter() methods.