a) Background Images
The editor has the possibility to display a background images on each page. There can be a left and a right image.
The left image is tiled in vertical direction, the right image is tiled in both directions. Both images can be used to mimic a paper notebook.
This command can be used to load the respective Bitmap (BMP) files:
CommandEx 141, 0, image_path loads the left image
CommandEx 142, 0, image_path loads the right image
All this images can be activated and deactivated using the WPA action "ShowBackgroundImage".
Note: .NET uses the overloaded Command() instead of CommandEx()
The command 143 will load the watermark image (bitmap or metafile) which will be displayed and printed on the page without tiling.
Load & Save:
CommandEx 143, 0, image_path - will load an image into slot 0 and select it for painting
CommandEx 143, 0, "" - will clear the image in slot 0
CommandEx 143, 1, image_path - will load an image into slot 1. You can use any number of "slots"
CommandEx 143, 1, image_path - will load an image into slot 1.
The Selection of the watermark is done through Memo.TextCommand(25,..). Usually it is done inside the OnNotify Event.
The watermark can be activated and deactivated using the WPA actions "ShowWatermark".
Also see Memo.TextCommand (Command 24: Draw lines and background, Page Size, Force Pagecount)!
Note: "RTF Watermarks"
Watermarks can also be created using images which are placed into the header text of the document. The image can be made movable (page dependent) and moved down the page so it is filled completely. This kind of watermarks wilkl also be saved with the document and, when using RTF, can be loaded by many other RTF reader.