drawImage() notvisible in LowLevelGraphicsPostScriptRenderer


Hi ,

I am trying to draw an image on LowLevelGraphicsPostScriptRenderer  using MemoryOutputStream.

Able render text, line  and Rectangle . However i am facing issue with drawingImage().

LowLevelGraphicsPostScriptRenderer lol(mos, "test", 200, 300);

Graphics g1(lol);

g1.drawImage(img, 10 , 20, 100,60, 0, 0, img.getWidth(), img.getHeight());

unable to see the image and finding that the width and height (100,60 ) filled with blank.





Are you sure the image is valid? Things to investigate would be to step into the code and see what happens, and to look at the PS code that it produces.


i am trying draw the image inside a rectangle. if we are  using x and y as same as rectangle the rectangle top left corner has overlaped with the width and height of this image. the rectangle and other content is pring as expected.

Actually i am trying to print this image on printer directly, i am able to print text and line with in the rectangle with LowLevelGraphicsPostScriptRenderer and MemoryOutputstream.






So it seems that maybe the AffineTransform it's using to position the image isn't correct?