Enhanced Printing

From CometWiki

(Difference between revisions)
Jump to: navigation, search
Line 40: Line 40:
|Rectangle=left, top, right, bottom
|Rectangle=left, top, right, bottom
|-  
|-  
-
|  valign=top | (RoundRect=left, top, right, bottom, corner-width, corner-height)
+
|  valign=top | (RoundRect)
| Draws a rectangle with rounded corners
| Draws a rectangle with rounded corners
-
| Howvere you should be able to see what I am trying, we could probably have this discussion in the duiscussion page rather than here in the body of the manual.
+
| RoundRect=left, top, right, bottom, corner-width, corner-height
|-  
|-  
|  valign=top | (SelectFont); log-font-data
|  valign=top | (SelectFont); log-font-data

Revision as of 20:36, 15 January 2010

Windows Printer Mnemonics

Text and font functions

Mnemonic MnemonicDescription Steve's Comments
(GetBkColor) Returns the current background color Steve, I took out the href stuff for this product and round rectangle, just to see how it went. Would this be enough room for comments or do you want to comment in the link which is a bit messy at the moment. The link is to a heading within a page and I can't remember how to not show the complicated link info and all my notes on this stuff are at home and I am not.
(GetBkMode) Returns the current background mode
(GetFontInfo = item-code) Returns font information
(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); printable-text Measures the size (width and height) of the specified 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); log-font-data Selects the specified font
(SelectSysFont=font-number) Selects the specified SYSTEM font
(SetBkColor=red, green, blue)</a> Sets the current background color
>(SetBkMode=mode)</a> Sets the background mode
>(SetTextAlign=flags)</a> Sets the text alignment mode
(SetTextColor=red, green, blue)</a> Sets the current text color
>(TextOut = X, Y); printable-text</a> Prints the specified text at the specified location

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).
</body></html>
Personal tools