| CPC G06T 9/20 (2013.01) | 20 Claims |

|
1. A computer implemented method for compressing a shape, the method including:
receiving input shape data defining one or more shape commands in respect of the shape;
initialising a compressed shape variable for storing data that defines a compressed version of the shape;
processing a first shape command of the one or more shape commands by:
determining a type of the first shape command;
in response to determining the type of the first shape command is a line type shape command:
determining if the first shape command defines a negligible line, based on a proximity of an end point of a first line defined by the first shape command to a start point of the first line being less than a proximity threshold; and
in response to determining that the first shape command does define a negligible line, not adding data from the first shape command to the compressed shape variable; or
in response to determining that the first shape command does not define a negligible line, recording the first shape command by adding data from the first shape command to the compressed shape variable.
|