Can I ask questions about printer HP-GL/2 language here?
-
I am writing a PCL renderer library for my draw control and stuffed in some detail. I wonder that anyone here can help me solve them, or are there any forums talk about this? Because the .NET graphics supports some specical pattern fill in HatchBrush object, to render it in PCL, I need to use RF (user defined raster fill) command along with FT (fill type) command to fill my rectangle. The problem is the hatch brush support foreground and backgroud color for its fill, but the HP-GL only support black and white fill. I read in some document and below is what they says about the pattern's color: Pen Number - Represents a pixel in the pattern being defined and indicates its color (black or white). 0 - White >0 - Black but other document says: The pen_number parameters define pixel left to right, top to bottom. Each pixel takes on the color of the specified pen (negative numbers a treated as zero). It's seems that the first one is what I meet, so what should I do the get the second effect? Please help me, thanks alot.