printing an image with text on it lazarus / 39-Graphics ---------------------------------------------------------------------- dfspannie · 2012-03-03 23:26 I have a problem printing an image with text on it. The image is  inside a scrollbox on a form, the image being too large to just put on the form. I tried printing it using various methods. stretchdraw only prints the image, not the text. copyrect only prints the part visible on the screen . I've searched the forum and the web, but all the solutions I've found seems to deal only with images that are completely visible. Any ideas ? Thanks in advance. Lazarus 0.9.30.2 FPC 2.4.4 Win XP/vista/7 ---------------------------------------------------------------------- User137 · 2012-03-04 00:57 Easier with TPaintBox. But also mistake you are making is propably drawing into TImage.Canvas. You should be drawing into its permanent memory, that is somewhere under TImage.Picture.Bitmap.Canvas. This may not be the case though with PNG or JPG. ---------------------------------------------------------------------- dfspannie · 2012-03-04 07:19 Thanks. changed jpeg to bmp and image1.canvas to image1.picture.bitmap.canvas. problem solved.