harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pavlenko, Andrey A" <andrey.a.pavle...@intel.com>
Subject RE: FW: [jira] Created: (HARMONY-4381) [classlib][awt] Color profiles are not exists
Date Wed, 25 Jul 2007 15:47:53 GMT
Lcms does not provide public API for accessing the binary data,
representing virtual profiles (generated on fly). This functionality is
required by the Java classes from the java.awt.color package. I could
create a "hack", but there is no guarantee that it will work on all
versions of lcms. Also the AWT spec suppose, that the built-in profiles
are located in *.pf files in the directory used to store profiles.

-----Original Message-----
From: Alexey Petrenko [mailto:alexey.a.petrenko@gmail.com] 
Sent: Wednesday, July 25, 2007 7:10 PM
To: dev@harmony.apache.org
Subject: Re: FW: [jira] Created: (HARMONY-4381) [classlib][awt] Color
profiles are not exists

If we can generate color profiles with lcms and store them to the
files why we can not generate and use them on fly?

SY, Alexey

2007/7/25, Pavlenko, Andrey A <andrey.a.pavlenko@intel.com>:
> Hi,
>
> I have a legal question.
>
> I could generate the profiles using the lcms library
> (http://sourceforge.net/projects/lcms) which is already used by the
> Harmony/AWT module. Could we use the generated profiles in Harmony?
>
>
> -----Original Message-----
> From: Dmitriy Matveev (JIRA) [mailto:jira@apache.org]
> Sent: Friday, July 06, 2007 3:38 PM
> To: commits@harmony.apache.org
> Subject: [jira] Created: (HARMONY-4381) [classlib][awt] Color profiles
> are not exists
>
> [classlib][awt] Color profiles are not exists
> ---------------------------------------------
>
>                 Key: HARMONY-4381
>                 URL:
https://issues.apache.org/jira/browse/HARMONY-4381
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Dmitriy Matveev
>
>
> Exception when using getInstance() method of
java.awt.color.ICC_Profile
>
> Test below demonstrate this:
>
> import java.awt.*;
> import java.awt.color.ColorSpace;
> import java.awt.event.WindowAdapter;
> import java.awt.event.WindowEvent;
> import java.awt.image.ColorConvertOp;
>
> public class ColorTest {
>    public static void main(String[] args) {
>        Frame f = new Frame("Test"){
>            public void paint(Graphics g){
>                Graphics2D g2d = (Graphics2D)g;
>                RenderingHints hints = g2d.getRenderingHints();
>                ColorSpace cs =
> ColorSpace.getInstance(ColorSpace.CS_GRAY);
>                ColorConvertOp cco = new ColorConvertOp(cs, hints);
>            }
>        };
>
>        f.setBounds(0, 0, 800, 600);
>        f.setVisible(true);
>        f.addWindowListener(new WindowAdapter() {
>            public void windowClosing(WindowEvent ev) {
>                System.exit(0);
>            }
>        });
>    }
> }
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>

Mime
View raw message