forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

draw Icon or Bitmap

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+
View previous topic :: View next topic  
Author Message
Bartl



Joined: 16 Oct 2009
Posts: 58
Location: München

PostPosted: Tue Feb 05, 2013 12:42 pm    Post subject: draw Icon or Bitmap Reply with quote

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
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7916
Location: Salford, UK

PostPosted: Tue Feb 05, 2013 4:19 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
LitusSaxonicum



Joined: 23 Aug 2005
Posts: 2388
Location: Yateley, Hants, UK

PostPosted: Mon Apr 01, 2013 3:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+ All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group