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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reuse Image (Raster)

Status
Not open for further replies.

tal6499

Programmer
Nov 9, 2011
42
0
0
PK
Hi,
I want to reuse a PCL raster image that is defined once in stream and required to placed with different scales on multiple pages.

If any other work around is possible for reusing the same image for different sizes(resolution).

Kindly reply.
 
****
Question relates to PCL5e.
****
 
If the image is defined as a macro, then you can call the macro as many times as you need it. If this is a logo that you just want to print at the same position om every page, you can enable the macro as an automatic overlay and the printer will do all the work for you.

See the chapter on macros in the PCL5 tech reference. You might also go to my website and grab a copy of the MKPCL manual for some
help as well.


Jim Asman
 
but i want different sizes for this image on different pages. Will this be possible?
 
No, not as such, but...

If you have 2 or three different sizes, make a different macro for each of the sizes, download them all to the printer at the head of the job, and then logic in your application would call the appropriate macro when needed.

You need to give a bit more detail as to what you are doing.

Jim Asman
 
This is the scenario:
I get some images first then the details where these images are to be placed. Detail contain there position on those pages with sizes.


Will it be possible to construct the PCL image once and place it on different pages with required sizes?

Currently images are placed with copies on all pages.
e.g if an image is required on 40 pages. it will be constructed as PCL raster 40 times with the required resolution on that page.
 
The only way you could change the size at the PCL level would be to print the image at different resokutions, This is not likely to be satisfactory for sizing or quality.

In the 40 versions of the image, how many different sizes are there?

Jim Asman
 
its on user , it can be 40 different resolutions or any.
 
actually we are trying to minimize the stream length and also the overhead to recreate the raster.
 
Are you compressing the raster data when the pcl file is created?

How are you creating the raster data to begin with? I assume that you are supplied a .bmp or whatever image file. Yes?

If you have potentially 40 different sized images in the same job, I don't see how you could avoid having 40 different raster pcl images.





Jim Asman
 
we have all compressions implemented.
But still we want to minimize the stream.

but thanks for the time.
 
Perhaps use 'arbitrary' Raster Scaling in conjunction with a macro storing the 'base' raster image?

Arbitrary scaling is only available on a few printers (perhaps large colour or greyscale capable devices?)

It requires use of the 'Configure Image Data', 'Destination Raster Width' and 'Destination Raster Height' sequences.

... and before you ask, I haven't tried anything like this myself!
 


>>Perhaps use 'arbitrary' Raster Scaling in conjunction with a macro storing the 'base' raster image?
>>It requires use of the 'Configure Image Data', 'Destination Raster Width' and 'Destination Raster Height' sequences.

ok,
could you plz elaborate these terms.
i have not seen any thing like this in hp manuals.

i had the idea of a macro for base raster, but it failed due to different resolutions.
 
>> could you plz elaborate these terms.

Described in the HP "Colour Technical Reference" manual (bpl 13212).

... but (as I mentioned before) these sequences are not supported by all PCL5 printers (certainly not by my LJ 1320n).
 
k, i will have a try.
and what would you think be the preferered approach to minimize pcl stream size in case of many images. Just compression or any ideas?
 
>>... or any ideas ...

Raster graphics is not really my area of expertise, sorry.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top