Silverfrost Forums

Welcome to our forums

draw Icon or Bitmap

5 Feb 2013 11:42 #11517

Hi, the following program with displaying the Icon works fine. My question: Is it possible to draw an Icon or bitmap to a printer or plotter? Johann

winapp 
program test
implicit none
include<windows.ins>
integer*4 i
i=WINIO@('%ca[Test zu Standard ICON]%nl&')
i=winio@('%2si?')
stop
end
5 Feb 2013 3:19 #11518

You can certainly draw an image but it will have to be scaled to a degree that depends on the printer that is selected.

See ftn95.chm under Win32 platform->ClearWin+->Using the printer.

1 Apr 2013 2:05 #11923

Bartl,

They need to be rather big, as if you have a 1200 or 1440 (Epson) dpi printer you need around 50 to 60 dots each way to fill up a square mm. Also, if you print on different printers, or even printers set to 'draft', the icon or bitmap will be sized differently. This means that you have (probably) to get the current printer dpi setting from GetDevCaps, and to import an appropriate sized bitmap.

I am assuming that you want to use this facility to import a company logo onto each page of a printout. Drawing many versions in a bitmap editor is tedious. However, if you draw the logo in a vector program like CorelDraw or Adobe Illustrator, you can export it multiple times at different resolutions.

Eddie

Please login to reply.