When I draw an awt component using the graphics context like this:
PdfTemplate template = contentByte.createTemplate(400, 400);
Graphics2D g2d = template.createGraphics(400, 400);
myComponent.paint(g2d);
g2d.dispose();
What units are used here?
When creating the template, I am supposed to use the user units (pt), right? Does it mean that in drawing itself there are used points too?
Let's say there is an image within the awt component that is 100x100 px size. It's drawn by calling g2d.drawImage(image). But if the units are points, the image will be bigger than it should be.