Re:Printing different brush Styles
Here is some more info on the following question which I had posed.
When I replace the code below by direct calls to the Windows API (i.e,
create my own brushes, regions, and call FillRgn) the code works on all of
the printers I have.
Though I know of packages which will allow me "to do the right thing" (for
example Joe Hecht seems to have a nice package) I am looking for an answer
as to whether there is a problem in the HP drivers, in the C++Builder
implementation or whether it is my code. Just doing something a different
way does not teach one what is wrong with a particular method.
--
Wojciech Komornicki
Quote
"Wojciech Komornicki" <wkomorni...@hotmail.com> wrote in message
news:3d3b0a92$1_1@dnews...
Quote
> I have a CAD application which fills various regions with colors and
various brush styles. The code that I use to print my canvas
Quote
> is
> PRCanvas->Brush->Style = pattern;
> PRCanvas->Brush->Color = color;
> PRCanvas->Polygon(Points, nr);
> where pattern is one of the standard brush styles (bsSolid, bsDiagCross,
etc), color is (obviously) a color, Points is an array of
Quote
> TPoint's which defines the polygon to be filled. PRCanvas is the printer
canvas
> This works just fine for all printers I have tried EXCEPT for HP printers
under Windows 2000 and Windows XP. It works fine for HP
Quote
> printers under Windows 98. Is this the wrong way to fill a polygon?
> --
> Wojciech Komornicki