Enhanced Printing

From CometWiki

Revision as of 20:12, 14 January 2010 by Badge (Talk | contribs)
Jump to: navigation, search

Windows Printer Mnemonics

Text and font functions

Mnemonic Description Steve's Comments
(GetBkColor)! [Mnemonics_%22G%22#.28GetBkColor.29] 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 commenys or do you want to comment in the link which isn;t there yet.
<a href="getbkmode.htm">(GetBkMode)</a> Returns the current background mode
<a href="getfontinfo.htm">(GetFontInfo = item-code)</a> Returns font information
<a href="getfuncresult.htm">(GetFuncResult)</a> Requests the 4-byte result of the last printer function
<a href="gettextalign.htm">(GetTextAlign)</a> Returns the current text alignment mode
<a href="gettextcolor.htm">(GetTextColor)</a> Returns the current text color
<a href="gettextextent.htm">(GetTextExtent); printable-text</a> Measures the size (width and height) of the specified text
<a href="popfont.htm">(Pop Font)</a>
<a href="pushfont.htm">(Push Font)</a>
<a href="rectangle.htm">(Rectangle=left, top, right, bottom)</a> Draws a rectangle
(RoundRect=left, top, right, bottom, corner-width, corner-height)< Draws a rectangle with rounded corners
<a href="selectfont.htm">(SelectFont); log-font-data</a> Selects the specified font
<a href="selectsysfont.htm">(SelectSysFont=font-number)</a> Selects the specified SYSTEM font
<a href="setbkcolor.htm">(SetBkColor=red, green, blue)</a> Sets the current background color
<a href="setbkmode.htm">(SetBkMode=mode)</a> Sets the background mode
<a href="settextalign.htm">(SetTextAlign=flags)</a> Sets the text alignment mode
<a href="settextcolor.htm">(SetTextColor=red, green, blue)</a> Sets the current text color
<a href="textout.htm">(TextOut = X, Y); printable-text</a> Prints the specified text at the specified location

Graphics and drawing functions

Mnemonic Description
<a href="drawbitmap.htm">(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

<a href="drawimage.htm">(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

<a href="drawtext.htm">(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

<a href="ellipse.htm">(Ellipse=left, top, right, bottom)</a> Draws an ellipse
<a href="lineto.htm">(Line To = X, Y)</a> Draws a line using the currently selected pen from the current

location pointer to the location specified

<a href="moveto.htm">(Move To = X, Y)</a> Moves the current location pointer to the specified location
<a href="selecthatchbrush.htm">(SelectHatchBrush=style, red, green, blue)</a> Selects the hatched brush
<a href="selectpen.htm">(SelectPen=style, width, red, green, blue)</a> Selects the specified pen
<a href="selectsolidbrush.htm">(SelectSolidBrush=red, green, blue)</a> Selects the solid brush

Printer control functions

Mnemonic Description
<a href="getpageinfo.htm">(GetPageInfo = item-code)</a> Returns page information
<a href="setorientation.htm">(SetOrientation=mode)</a> Sets the paper orientation
<a href="setpapersize.htm">(SetPaperSize)</a> Sets the paper size
<a href="setprinterinfo.htm">(SetPrinterInfo)</a> Sets printer information
<a href="linespacing.htm">(LineSpacing=LinesPerInch)</a> Overrides the default font-based line spacing to the desired lines-per-inch
<a href="autocron.htm">(AutoCrOn)</a> Turns on extra CR/LF added by CosP to the end of each line not followed by (TR).
<a href="autocroff.htm">(AutoCrOff)</a> Turns off extra CR/LF added by CosP to the end of each line not followed by (TR).
</body></html>
Personal tools