View previous topic :: View next topic |
Author |
Message |
Bartl
Joined: 16 Oct 2009 Posts: 58 Location: München
|
Posted: Tue Feb 05, 2013 12:42 pm Post subject: draw Icon or Bitmap |
|
|
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
Code: |
winapp
program test
implicit none
include<windows.ins>
integer*4 i
i=WINIO@('%ca[Test zu Standard ICON]%nl&')
i=winio@('%2si?')
stop
end
|
|
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7930 Location: Salford, UK
|
Posted: Tue Feb 05, 2013 4:19 pm Post subject: |
|
|
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. |
|
Back to top |
|
|
LitusSaxonicum
Joined: 23 Aug 2005 Posts: 2388 Location: Yateley, Hants, UK
|
Posted: Mon Apr 01, 2013 3:05 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
|