home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form Form1
- Caption = "PostScript Printing"
- ClientHeight = 4635
- ClientLeft = 3000
- ClientTop = 2145
- ClientWidth = 3720
- ControlBox = 0 'False
- Height = 5040
- Icon = PSOUT.FRX:0000
- Left = 2940
- LinkMode = 1 'Source
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 309
- ScaleMode = 3 'Pixel
- ScaleWidth = 248
- Top = 1800
- Width = 3840
- Begin CommandButton Command1
- Caption = "Exit"
- Height = 375
- Left = 120
- TabIndex = 0
- Top = 3480
- Width = 3495
- End
- Begin CommandButton Command3
- Caption = "Print This Image"
- Height = 375
- Left = 120
- TabIndex = 1
- Top = 3000
- Width = 3495
- End
- Begin PictureBox Picture1
- AutoRedraw = -1 'True
- AutoSize = -1 'True
- Height = 2730
- Left = 120
- Picture = PSOUT.FRX:0302
- ScaleHeight = 2700
- ScaleWidth = 3450
- TabIndex = 2
- Top = 120
- Width = 3480
- End
- Begin Label Label2
- Alignment = 2 'Center
- Caption = "by Stephen Cramp - C/Systems 1992"
- Height = 255
- Left = 120
- TabIndex = 4
- Top = 4320
- Width = 3495
- End
- Begin Label Label1
- Alignment = 2 'Center
- Caption = "PostScript Printing Demo"
- Height = 255
- Left = 120
- TabIndex = 3
- Top = 3960
- Width = 3495
- End
- Sub Command1_Click ()
- End
- End Sub
- Sub Command3_Click ()
- Const SRCCOPY = &HCC0020
- Printer.ScaleMode = 3
- Printer.CurrentY = 50
- Printer.Print " Sample of PostScript Printing"
- Printer.Print "Program by Stephen Cramp - C/Systems"
- Bits$ = String$(230 / 2 * 180, 0)
- BitInfo$ = Chr$(40) + String$(3, 0) + Chr$(230) + String$(3, 0) + Chr$(180) + String$(3, 0) + Chr$(1) + Chr$(0) + Chr$(4) + Chr$(0) + String$(24, 0) + String$(64, 0)
- ApiError% = GetDIBits(Picture1.hDC, Picture1.Image, 0, 180, Bits$, BitInfo$, 0)
- ApiError% = StretchDIBits(Printer.hDC, 100, 150, 690, 540, 0, 0, 230, 180, Bits$, BitInfo$, 0, SRCCOPY)
- Printer.EndDoc
- End Sub
-