Board index » delphi » printer.canvas.rectangle not working on NT
Michael Raustad
![]() Delphi Developer |
Mon, 30 Apr 2001 03:00:00 GMT
|
Michael Raustad
![]() Delphi Developer |
Mon, 30 Apr 2001 03:00:00 GMT
printer.canvas.rectangle not working on NT
The following code prints a shaded box on Win95/98, but on NT4:
printer.canvas.brush.style := bsBDiagonal; If I use BsSolid style, I get a black box. So bsBDiagonal does not Many thanks, |
Joe C. Hech
![]() Delphi Developer |
Mon, 30 Apr 2001 03:00:00 GMT
Re:printer.canvas.rectangle not working on NTQuoteMichael Raustad wrote: Brushes are not very device dependent. In theroy, those diagonal With some devices, there are additional issues such as "dot spead" Some printer drivers (very rare) have enough smarts to see that For good "all across the board" results, your going to have to Note that this *not* an issue with Delphi, but rather (IMHO) Hope that helps! Joe |
Michael Rausta
![]() Delphi Developer |
Mon, 30 Apr 2001 03:00:00 GMT
Re:printer.canvas.rectangle not working on NTQuoteJoe C. Hecht wrote in message <364B9BCE.3...@gte.net>... am having a hard believing WinNT does not have an API call to do shading. <G> By your reply I take it to mean that there are not any NT apps that can do shading without implementing their own routines, correct? If so, I agree, NT lost their way somewhere. Best regards, |
Joe C. Hech
![]() Delphi Developer |
Mon, 30 Apr 2001 03:00:00 GMT
Re:printer.canvas.rectangle not working on NTQuoteMichael Raustad wrote: gray shades on a monochrome printer, but be forwarded that 50% black may or may not really translate optically to 50% black<g>. If your taking about hatching patterens, then yes, you will need to draw your own patterns. A hatched line is not to difficult to draw. What you really want is to draw the lines some finite distance apart, for instance every 1/8th of an inch. The hatched brush draws them every 8 pixels. This may look good on a 96 dpi display, but will look pretty bad at 300 dpi, even worse at 600 dpi, and absolutly terrible at 3600 dpi on film. Another point to make. You line with should be scaled to some finite Joe |
Chris Hi
![]() Delphi Developer |
Tue, 01 May 2001 03:00:00 GMT
Re:printer.canvas.rectangle not working on NTOn Thu, 12 Nov 1998 22:14:58 -0500, "Michael Raustad" <m...@mrtec.com> wrote: Quote>Joe, I appreciate your reply! Maybe I will have to do that, however, I If you can't get the diagonal lines to work, you can use a bitmap Chris Hill |
Ken Baile
![]() Delphi Developer |
Sun, 06 May 2001 03:00:00 GMT
Re:printer.canvas.rectangle not working on NTMichael, I've been looking into the same issue. If all you want is shading, then With my Brother HL630, Red, Blue and Cyan produce three distinguishable If you overlap two rectangles, fill one with a solid brush and one with QuoteMichael Raustad wrote: Ken Bailey Falmouth Software Works Ltd. |
1. Laser Printer will not work with printer.canvas
2. Canvas Rectangle not working
3. Printer.Canvas.FloodFill does not work.
4. Printer.Printers - not listing printer connections if used in NT service
5. hot to set printer.canvas rectangle ??
6. TextOut on printer canvas creates black rectangles
7. Overwriting DrawText with a rectangle on the Printer Canvas
8. Printer()->Canvas not updated when printer is changed