BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TBrush Style

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics
View previous topic :: View next topic  
Author Message
Kent
Guest





PostPosted: Fri Sep 22, 2006 2:21 am    Post subject: TBrush Style Reply with quote



I am printing a polygon and filling it with a style(Diagonal).
It works fine as long as I print it in color or to the screen.
I want to print it on a black and white laser printer.
Therefore, before printing
the polygon I set both the Pen and Brush to the color black.
If I leave the brush style either bsBDiagonal or bsFDiagonal
the lines appear to draw white. I have a background mesh
that is printed with little holes where the hatches should be.
If I change the style to bsSolid it prints fine. How can I get
the black hatch to show up. Here is the code:

Canvas.Pen.Color := clBlack;
Canvas.Brush.Color := clBlack;
Canvas.Brush.Style := bsBDiagonal; // bsSolid;
Canvas.Polygon(Points);

The above code works fine when the canvas is the screen but
not the laser printer.
Back to top
Rod
Guest





PostPosted: Fri Sep 22, 2006 3:16 am    Post subject: Re: TBrush Style Reply with quote



Kent wrote:
Quote:
I am printing a polygon and filling it with a style(Diagonal).
It works fine as long as I print it in color or to the screen.
I want to print it on a black and white laser printer.
Therefore, before printing
the polygon I set both the Pen and Brush to the color black.
If I leave the brush style either bsBDiagonal or bsFDiagonal
the lines appear to draw white. I have a background mesh
that is printed with little holes where the hatches should be.
If I change the style to bsSolid it prints fine. How can I get
the black hatch to show up. Here is the code:

Canvas.Pen.Color := clBlack;
Canvas.Brush.Color := clBlack;
Canvas.Brush.Style := bsBDiagonal; // bsSolid;
Canvas.Polygon(Points);

The above code works fine when the canvas is the screen but
not the laser printer.


Already known bug, please vote here:

http://qc.borland.com/wc/qcmain.aspx?d=5055
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.