public void DrawRenderedImage(RenderedImage renderedimage, AffineTransform affinetransform) { BufferedImage bufferedimage = new BufferedImage(renderedimage.GetColorModel(), renderedimage.GetData().CreateCompatibleWritableRaster(), false, null); bufferedimage.SetData(renderedimage.GetData()); DrawImage(bufferedimage, affinetransform, null); }