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