Avatar of InteractiveMind
InteractiveMindFlag for United Kingdom of Great Britain and Northern Ireland

asked on 

cm to pixel

I need to scale an image, such that when I print it, it will be of length x cm. Thus, I imagine I need some conversion factor (or some function) to take the number of cm's, and return the corresponding number of pixels.....


Thanks
Java

Avatar of undefined
Last Comment
CEHJ
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of InteractiveMind

ASKER

Thanks CEHJ, will have a play with it :)
Avatar of InteractiveMind

ASKER

So, the number of pixels per cm are dependent on the printer? :-(

Here's what I plan on doing:

producing a .prn file (by "Printing to File"), and then I need to print this file off on another computer (a laser printer).

Do you know if a .prn file retains the correct sizes? (So, if I were to draw a 1x1 square -inch rect on my computer with my cruddy inkjet printer, then 'printed' this to a .prn file, and then printed this .prn file on another computer [with the laser printer], will the final print-out be 1x1 inch still?)

Any idea?
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

I can't answer that i'm afraid, and i'd be interested if anyone could, as AFAIK prn files are proprietary. There's probably a Postscript instruction that says- 'i'd like this printed 1 inch square so scale it for me appropriately please' which could be encapsulated in the prn file, but i don't know what that would be or how it'd get there
SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

>>I can't answer that i'm afraid,

That of course refers to your question beginning

>>Do you know if a .prn file

and not to

>>So, the number of pixels per cm are dependent on the printer? :-(

which i assumed was rhetorical ;-)
Java
Java

Java is a platform-independent, object-oriented programming language and run-time environment, designed to have as few implementation dependencies as possible such that developers can write one set of code across all platforms using libraries. Most devices will not run Java natively, and require a run-time component to be installed in order to execute a Java program.

102K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo