User Tools

Site Tools


high_20quality_20hardcopy_20output_20_28lbb_29

This is an old revision of the document!


High quality hardcopy output (LBB)

by Richard Russell, October 2015

The article Improving the print quality describes one way of improving the quality of hardcopy output from LBB. An alternative approach is to use a large (normally) invisible window, of a sufficient size to achieve the desired quality, and then to send it to the printer using the GUI print command. Here's an example, using a large invisible window to give 600-dpi equivalent quality (LBB only; it doesn't work properly in LB):

    PaperWidth = 7.0   ' Printable width in inches
    PaperHeight = 10.0 ' Printable height in inches
    DotsPerInch = 600  ' Equivalent DPI quality
    WindowWidth = PaperWidth * DotsPerInch
    WindowHeight = PaperHeight * DotsPerInch
    stylebits #preview, 0, _WS_VISIBLE, 0, 0
    open "Printer Preview" for graphics_nf_nsb as #preview
    title$ = "My centered page title"
    #preview "font Arial 0 200 underscore"
    #preview "stringwidth? title$ stringwidth"
    #preview "place ";(WindowWidth-stringwidth)/2;" ";500
    #preview "color blue"
    #preview "\"; title$
    #preview "color red; size 20"
    #preview "place ";WindowWidth/2;" ";WindowHeight/2
    #preview "down; circle ";WindowWidth/4
    #preview "print ";WindowWidth
    close #preview
This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
high_20quality_20hardcopy_20output_20_28lbb_29.1522502364.txt.gz · Last modified: 2024/01/05 00:17 (external edit)