×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Color Image is filled with Fill color of a rectangle

Color Image is filled with Fill color of a rectangle

Color Image is filled with Fill color of a rectangle

(OP)
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.  

RE: Color Image is filled with Fill color of a rectangle

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.

RE: Color Image is filled with Fill color of a rectangle

There is only one byte different between your two PCL files, at displacement 3835; analysis of the 'bad' file around this displacement shows:

CODE


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 ]     
(the above text may not wrap very well within the Tek-Tips page).

The equivalent 'good' file uses:

CODE


0000003832   PCL Complex            <Esc>*v0S

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


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
so why not place a reset to colour zero in front of the escape sequence at displacement 3842?

RE: Color Image is filled with Fill color of a rectangle

(OP)
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...

RE: Color Image is filled with Fill color of a rectangle

"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.

RE: Color Image is filled with Fill color of a rectangle

(OP)
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?

RE: Color Image is filled with Fill color of a rectangle

(OP)
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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close