code: public static RasterizedGeometry2D create(Geometry geom,
  			double toleranceXY, int rasterSizeBytes) {
  		if (!canUseAccelerator(geom))
  			throw new IllegalArgumentException();
  
  		RasterizedGeometry2DImpl gc = RasterizedGeometry2DImpl.createImpl(geom,
  				toleranceXY, rasterSizeBytes);
  		return (RasterizedGeometry2D) gc;
  	}
docs: Creates a rasterized geometry from a given Geometry.
  
  @param geom
  The input geometry to rasterize. It has to be a MultiVertexGeometry instance.
  @param toleranceXY
  The tolerance of the rasterization. Raster pixels that are
  closer than given tolerance to the Geometry will be set.
  @param rasterSizeBytes
  The max size of the raster in bytes. The raster has size of
  rasterSize x rasterSize. Polygons are rasterized into 2 bpp
  (bits per pixel) rasters while other geometries are rasterized
  into 1 bpp rasters. 32x32 pixel raster for a polygon would
  take 256 bytes of memory