Enhanced Printing
From CometWiki
(Difference between revisions)
Line 52: | Line 52: | ||
| valign=top | [[Mnemonics_%22S%22#.28SelectFont|(SelectSysFont)]] | | valign=top | [[Mnemonics_%22S%22#.28SelectFont|(SelectSysFont)]] | ||
| Selects the specified SYSTEM font | | Selects the specified SYSTEM font | ||
- | !SelectSysFont=font-number | + | ! SelectSysFont=font-number |
|- | |- | ||
| valign=top |[[Mnemonics_%22S%22#.28SetBkColor.29| (SetBkColor]]) | | valign=top |[[Mnemonics_%22S%22#.28SetBkColor.29| (SetBkColor]]) | ||
Line 72: | Line 72: | ||
| valign=top | [[Mnemonics_%22T%22#.28TextOut.29|(TextOut)]] | | valign=top | [[Mnemonics_%22T%22#.28TextOut.29|(TextOut)]] | ||
| Prints the specified text at the specified location | | Prints the specified text at the specified location | ||
- | ! TextOut = X, Y | + | ! TextOut = X, Y; printable-text |
|- | |- | ||
|}<p><h3> | |}<p><h3> |
Revision as of 21:06, 15 January 2010
Windows Printer Mnemonics
Text and font functions
Mnemonic | Description | Format - for in depth review follow link |
---|---|---|
(GetBkColor) | Returns the current background color | |
(GetBkMode) | Returns the current background mode | |
(GetFontInfo) | Returns font information | GetFontInfo = item-code |
(GetFuncResult) | Requests the 4-byte result of the last printer function | |
(GetTextAlign) | Returns the current text alignment mode | |
(GetTextColor) | Returns the current text color | |
(GetTextExtent) | Measures the size (width and height) of the specified text | GetTextExtent= printable-text |
(Pop Font) | ||
(Push Font) | ||
(Rectangle) | Draws a rectangle | Rectangle=left, top, right, bottom |
(RoundRect) | Draws a rectangle with rounded corners | RoundRect=left, top, right, bottom, corner-width, corner-height |
(SelectFont) | Selects the specified font | SelectFont= log-font-data |
(SelectSysFont) | Selects the specified SYSTEM font | SelectSysFont=font-number |
(SetBkColor) | Sets the current background color | SetBkColor=red, green, blue |
(SetBkMode) | Sets the background mode | SetBkMode=mode |
(SetTextAlign) | Sets the text alignment mode | SetTextAlign=flags |
(SetTextColor) | Sets the current text color | SetTextColor=red, green, blue |
(TextOut) | Prints the specified text at the specified location | TextOut = X, Y; printable-text |
Graphics and drawing functions
Mnemonic | Description |
---|---|
(Draw Bit Map=left, top, right, bottom, scaleX, scaleY, flags); filename</a> | Draws a bitmap graphic contained in the specified filename (.BMP/.JPG) at the specified
location, using the specified format codes and scaling factors |
(Draw Image=left, top, right, bottom, scaleX, scaleY, flags, filename)</a> | Draws a bitmap graphic contained in the specified filename (.BMP/.JPG) at the specified
location, using the specified format codes and scaling factors |
>(Draw Text=left, top, right, bottom, flags); printable-text</a> | Prints the specified text into the rectangle at the specified location,
using the specified format codes |
(Ellipse=left, top, right, bottom)</a> | Draws an ellipse |
(Line To = X, Y)</a> | Draws a line using the currently selected pen from the current
location pointer to the location specified |
(Move To = X, Y)</a> | Moves the current location pointer to the specified location |
(SelectHatchBrush=style, red, green, blue)</a> | Selects the hatched brush |
(SelectPen=style, width, red, green, blue)</a> | Selects the specified pen |
(SelectSolidBrush=red, green, blue)</a> | Selects the solid brush |
Printer control functions
Mnemonic | Description |
---|---|
(GetPageInfo = item-code)</a> | Returns page information |
(SetOrientation=mode)</a> | Sets the paper orientation |
(SetPaperSize)</a> | Sets the paper size |
(SetPrinterInfo)</a> | Sets printer information |
(LineSpacing=LinesPerInch)</a> | Overrides the default font-based line spacing to the desired lines-per-inch |
(AutoCrOn)</a> | Turns on extra CR/LF added by CosP to the end of each line not followed by (TR). |
>(AutoCrOff)</a> | Turns off extra CR/LF added by CosP to the end of each line not followed by (TR). |