Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Color Image is filled with Fill color of a rectangle 1

Status
Not open for further replies.

jpogriff

Programmer
May 27, 2004
24
US
Has any one seen this before. THis only occurs if the fill color of the rectagle is other than white or black. I have tried destorying the active and stack palettes but no luck. If I reset the printer looks good good but on a seperate page. Also, I have tried to vary the order of the output no change. Using Image Magick to convert a jpg.
 
Without having somewhat more information, it is difficult to guess just what your problem is, and hence what may be causing it.

Please provide more precise symptoms and details of your PCL.

As a wild guess, it could be something to do with Foreground Colour, but I may be totally misinterpreting your description, and hence this may be way off-mark.
 
There is only one byte different between your two PCL files, at displacement 3835; analysis of the 'bad' file around this displacement shows:
Code:
[sub]
0000003802   PCL Complex            <Esc>*p165X       Cursor Position (PCL units): Horizontal
0000003809   PCL Complex            <Esc>*p1450Y      Cursor Position (PCL units): Vertical
0000003817   PCL Complex            <Esc>*c4585A      Rectangle Size (PCL units): Horizontal
0000003825   PCL Complex            <Esc>*c400B       Rectangle Size (PCL units): Vertical
0000003832   PCL Complex            <Esc>*v3S         Foreground Colour
0000003837   PCL Complex            <Esc>*c0P         Fill Rectangular Area: Solid Area
0000003842   PCL Complex            <Esc>&p1S         Select Palette
0000003847   PCL Complex            <Esc>*p200X       Cursor Position (PCL units): Horizontal
0000003854   PCL Complex            <Esc>*p200Y       Cursor Position (PCL units): Vertical
0000003861   PCL Complex            <Esc>*r3F         Raster Graphics Presentation: Physical
0000003866   PCL Complex            <Esc>*t300R       Raster Graphics Resolution (dpi)
0000003873   PCL Complex            <Esc>*r300T       Raster Height (raster rows): Source
0000003880   PCL Complex            <Esc>*r300S       Raster Width (pixels): Source
0000003887   PCL Complex            <Esc>*v6W         Configure Image Data
0000003892   PCL Binary             [ 6 bytes ]       
0000003898   PCL Complex            <Esc>*r1A         Start Raster Graphics: Left Margin at X
0000003903   PCL Complex            <Esc>*b0Y         Y Offset (raster lines)
0000003908   PCL Complex            <Esc>*b0M         Set Compression Mode: Unencoded
0000003913   PCL Complex            <Esc>*b900W       Transfer Raster Data (Row/Block)
0000003920   PCL Binary             [ 172 bytes ]     
0000004092   PCL Binary             [ 728 bytes ]     
0000004820   PCL Complex            <Esc>*b900W       Transfer Raster Data (Row/Block)
0000004827   PCL Binary             [ 900 bytes ]     
[/sub]
(the above text may not wrap very well within the Tek-Tips page).

The equivalent 'good' file uses:
Code:
[sub]
0000003832   PCL Complex            <Esc>*v0S 
[/sub]

Also, earlier in (both) files, there are instances of using coloured filled rectangles, but these are followed by a reset to foreground colour zero (which is Black in the RGB simple colour palette):
Code:
[sub]
0000000271   PCL Complex            <Esc>*p165X       Cursor Position (PCL units): Horizontal
0000000278   PCL Complex            <Esc>*p3200Y      Cursor Position (PCL units): Vertical
0000000286   PCL Complex            <Esc>*c4420A      Rectangle Size (PCL units): Horizontal
0000000294   PCL Complex            <Esc>*c3B         Rectangle Size (PCL units): Vertical
0000000299   PCL Complex            <Esc>*v9S         Foreground Colour
0000000304   PCL Complex            <Esc>*c0P         Fill Rectangular Area: Solid Area
0000000309   PCL Complex            <Esc>*p1400X      Cursor Position (PCL units): Horizontal
0000000317   PCL Complex            <Esc>*p775Y       Cursor Position (PCL units): Vertical
0000000324   PCL Complex            <Esc>(8U          Primary Symbol Set
0000000328   PCL Complex            <Esc>(s1p         Primary Spacing: Proportional
0000000333                                 10v        Primary Height (points)
0000000336                                 0s         Primary Style
0000000338                                 0b         Primary Stroke Weight: Medium
0000000340                                 5T         Primary Typeface
0000000342   PCL Complex            <Esc>*v0S         Foreground Colour
0000000347   Data                                     Counselor
[/sub]
so why not place a reset to colour zero in front of the escape sequence at displacement 3842?
 
Dans, Thanks for the information it works if I reset the color before the image somewhat but other areas will reset to black. I think the issue is with image majick when the image is converted. Turns out that imagemagick is also only converting the image @ 72dpi in the binary some I am told... I am going to do some more looking. I have contacted a programmer at HP to see if he can have someone look at is as well. What program did you use to read the file? Thanks again for the help. Not really sure what else it could be. No image works fine with an image other issue arise...
 
it works if I reset the color before the image somewhat but other areas will reset to black. I think the issue is with image majick when the image is converted"

You need to be more specific.


"Turns out that imagemagick is also only converting the image @ 72dpi in the binary some I am told..."

Perhaps the original image is only at 72dpi anyway (i.e. designed for VGA screen, not PCL printer); converting to a higher resolution whilst maintaining colours/shading/etc. is quite difficult.


"What program did you use to read the file?"

See thread286-1031037 for detail.


"No image works fine with an image other issue arise..."

Not sure what you mean.
 
Dans,

"it works if I reset the color before the image somewhat but other areas will reset to black. I think the issue is with image majick when the image is converted"

"You need to be more specific."

Othe fill areas will be black and not the correct fill color. <Esc>*v4S Files with the image printered before or after the fill areas are the same with the exception that the imae is moved.

"Perhaps the original image is only at 72dpi anyway (i.e. designed for VGA screen, not PCL printer); converting to a higher resolution whilst maintaining colours/shading/etc. is quite difficult."

The image was rendered from vector art out of illustrator and the raterized in photoshop 7 to 300 x 300.

Thats too bad about the program. I thank you for reading it... If things change please let me know.

"No image works fine with an image other issue arise..."
It was a long day.. If I do not print an image at all the the document looks fine. If I do print an image the the are the issues we have been discussing.

Does this make sense?

 
Figured it out..

I have to set the font color to black befor images data.
*v0S

Then image data.

Then reset the color plane

*v6W" CHR(2) + CHR(3) + CHR(8) + CHR(8) + CHR(8) + CHR(8).
v255a213b209c8I".
v146a51b51c9I".

Hope this can help someone else.....
Dans thanks for all your help on this one.
James
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top