Thanks for the attachment, Vincent. After looking it over, and noticing
that the CMYK profile file is big, I was wondering why not calculate the
remapping pixel-by-pixel, rather than look it up? Is this a very involved
operation? To me, at first blush, it would seem to be a simple three-step
process to cull the equivalent pure colors and remap them, i.e., subtract
the value of the dimmest color from all three colors and set K to this,
subtract the value of the next dimmest color from the remaining two and set
the color represented by the combination to that, and lastly set the
components that would result in the remaining color. I suppose, if correct,
this means doing sorting, subtraction, shifting, and substitution
operations on a high proportion of the pixels, possibly meaning that a
lookup will do the job faster. Is this a reasonable approximation of the
situation?
In a related matter, can someone tell me where the conversion activity
occurs when a Java print operation is used to send what was originally an
RGB Image to a color printer: in Java, or in a printer driver?
Best regards,
Dave J.
P.S. To those who feel that they were inconvenienced by the attachment that
Vincent kindly made for me, I think it is only fair to point out that
during downloads, other processes are generally not locked out, so it
should not be too hard to make productive use of one's time while receiving
a big attachment. Also, if someone does not have a posting site, I do not
really see the alternative. Lastly, in theory, such an attachment serves
more than just the one making the request.
- DJ
At 09:27 PM 11/15/99 -0800, you wrote:
>David,
>
>My book does not cover the
>dithering to monochrome (but you may find the description of BufferedImages,
>Rasters and BufferedImageOps interesting for your purpose, as they discuss
filter
>implementations).
>
>I hope this helps.
>Cheers.
>V.
>
>David Janszen wrote:
>
>>intermediate correspondence
>>
>> At 06:13 PM 11/12/99 -0800, you wrote:
>> >David,
>> >
>> >Attached is a sample program that does just that. I have also attached a
>> sample
>> >CMYK profile from Sun so that
>> >you can actually test out the program with a sample color profile.
>> >
>> >Hope this helps.
>> >Vincent.
>> >
>> >P.S: The sample program comes from my book "Java 2D API Graphics" that was
>> just
>> >published by Sun Press/Prentice Hall in the Java Series.
>> >
>> >David Janszen wrote:
>> >
>> >> Does anyone know where I can look for a routine that converts the
pixels in
>> >> an Image to Magenta-Yellow-Cyan?
>> >>
David Janszen,
Software Engineer
Microcom Corp.
8333A Green Meadows Dr. N.
Westerville OH 43081
740-548-6262 x234
710-548-6556 (fax)
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".