public PdfPatternPainter createPattern ( float width , float height , float xstep , float ystep , Color color ) { checkWriter ( ) ; if ( xstep == 0.0f || ystep == 0.0f ) throw new RuntimeException ( "XStep or YStep can not be ZERO." ) ; PdfPatternPainter painter = new PdfPatternPainter ( writer , color ) ; painter . setWidth ( width ) ; painter . setHeight ( height ) ; painter . setXStep ( xstep ) ; painter . setYStep ( ystep ) ; writer . addSimplePattern ( painter ) ; return painter ; }
Create a new uncolored tiling pattern .