Specifying Colors with a different ColorModel than sRGB

Hi everyone,
for a reason which I still don't understand, for sometimes I'm as foolish as hell, I want to specify a color with the HSV color model.
In order to do this I went through the API specification and I came up with this solution, which I thought would work:
float components[] = {0.67f, 0.6f, 0.85f};
ColorSpace cs = new ICC_ColorSpace(ICC_Profile.getInstance(ICC_Profile.icSigHsvData));
Color HSVColor = new Color(cs, components, 1.0f);
but at run-time I receive the IllegalArgument Exception "Unknown color space".
Can someone lend a hand?
Thanks guys,
Pierlu.

It's strange how sometimes you understand where you were wrong only when you ask someone else for cues.
I've rearranged my code in the following way, and now it works:
float components[] = {0.67f, 0.6f, 0.85f};
ColorSpace cs = new ICC_ColorSpace(ICC_Profile.getInstance(ColorSpace.CS_CIEXYZ)); //<---
Color c = new Color(cs, components, 1.0f);
but nonetheless it doesn't do what I want!
I tried to specify the ColorSpace in the following way
ColorSpace cs = new ICC_ColorSpace(ICC_Profile.getInstance(ColorSpace.TYPE_HSV));
but I still get an error.
So I've come to the conclusion that I only can specify colorspaces through static constants that starts with "CS_".
But my question now is: "How can I specify a color though the HSV or the CIE_Lab or any other damned colorspace?"
(Sorry guys but I'm getting a nerve out of this)
Thanks again you all,
Pierlu.

Similar Messages

  • Can i lock an app on my iPhone with a different password than the one i use to lock my phone?

    can i lock an app on my iPhone with a different password than the one i use to lock my phone?

    This should work; one of my e-mail accounts is my own domain through Gmail.  Make sure your username is set to your full e-mail address (like [email protected]) rather than just your username.
    Did you set it up on your iPhone as an IMAP account, or as a Gmail account?  It should work perfectly using the Gmail setting.  It can work as IMAP, but you need to jump through a few hoops to get there.

  • Can I open a tab with a different page than my homepage?

    I wanted to find out if it's possible to open a tab with a different page than my homepage.  It doesnt seem that I can do what I want because when I go to Safari Preferences/General, the only options for tab open is topsites/homepage/empty page/same page/bookmarks.  I'm surprised it doesnt let you select your own choice of page - if that is different from your home page.  It would seem t his would be so simple...Why cant I have a different webpage as my homepage when I open a new window and something else when I open a new tab.  But apparently I cant.
    Let me know if there's a way to do it.

    Actually I did get it to work the way I wanted to; thanks.  Its hard to explain but I had to set my homepage to what I wanted my tab to be , and then set my new window to the folder with just the one URL.  So in this one example (although now I know I can customize it).  I set my homepage to igoogle but then set my tab to open with my homepage (which really isnt my homepage) and a new window to open with a folder that just had "Google News" in it.
    Seems confusing and a lot of steps to do something that could easily be accomplished by just letting the user type in the URL of what they wanted.   Instead, I had to jump through hoops and basically set up a homepage that is not really a homepage because my new windows wont open with it as a homepage...so what makes it a homepage?  If that logic makes sense.  A homepage is not really a homepage then.
    This is another example of where if Id ask Apple, theyd tell me it couldnt be done.  Ive had the worst luck with Applecare and instore trainers.  Most of the time when they tell me "I Dont know" or "This can't be done", I post something here and get the answers.

  • Is it possible to publish a project with a different resolution than the native project resolution?

    I think I know what the answer is going to be here, but I'm going to ask anyway. The background here is that I've made a few demo videos for new products and features my company is working on. I'm using CP4 for this. Our marketing department wants to take AVIs of my demos and insert them into their Powerpoint demonstrations. However, the native resolution of our demos doesn't make for a graceful import into Powerpoint. Thus, I've been directed to provide smaller res AVI files.
    Thus, I am wondering if you can publish a project at a different resolution than the one in which it was recorded. My initial poking around seems to indicate that the answer is "no," and if this is truly the case, I will be rumbling over to the "Suggest a Feature" forum soon. There does seem to be a kind-of-workaround in that you can change the resolution of the project before publishing it, but this is something that cannot be undone, meaning that in order to do this, I will have to save new, smaller versions of all my projects. This is a bit ungainly.
    So, if anyone knows a good trick here, I would love to hear it!

    Unfortunately, I don't know what you mean when you say "manual panning." And I'm really not sure what you mean when you say the fields are not fully visible in the original image; they are completely visible. Here's a close-up from the original slide:
    As you can see, the fields are completely visible.
    Also, the slide is not entirely static. For the slide I chose as an example, the Password is filled in before the mouse moves. This typing may be part of what is getting Captivate confused; note this sequence from the resized version of the project:
    Slide 35:
    The login window first appears. Everything is normal. During this slide, the mouse moves and clicks inside the User ID field, leading to...
    Slide 36:
    At this point, things begin to go awry. The user name is entered, and the cursor moves to the Password field.
    Slide 37:
    Whoops! As soon as we click Login, everything goes back to normal.
    Slide 38:
    I will try a few of the suggestions you offered, and will report back with the results.

  • How to synchronize colors with two different video cameras

    I own Sony FX1 and HC9 video cameras. The color between the two video cameras can be pretty noticeable, and I tend to flip between the two cameras a lot during editing. Ideally I would get them to match up better before I start filming, but despite my attempts, I still can see a noticeable difference between them in post-production. I know I can use the color corrector filter to adjust the colors, but is there a more effective way to adjust the colors of the two video so they match better? I have used that eyedropper on the "visual" screen of the color corrector to adjust the white balance. Is there something similar where I could for example click the eyedropper on the blue of one video and it would change the blue of the video from the second camera to match?

    You don't really have the controls for that in FCE. You can't fine tune the color with real precision for color matching in FCE. There is a match hue function with the eyedropper, but without separate shadows, mids, and highlight color controls there is only so much you can do.

  • Invoice generated with a different amount than in the invoice plan

    Hi All,
    I have a problem with the invoice, generated by using transaction MRIS, which is taking an amount other than the amount in the invoice plan (partial invoicing plan).
    The invoice plan is till 31.12.2010 in the PO with amount 4000. The invoice generated on 3.2.2011 is for an amount of 5000.
    Can any one tell me why an invoice is generated with an amount other than the invoicing plan amount.

    Hello
    Is it entry msitake or else hand written mistake ? If it is entry mistake ,you can check payment document number where that .3 debited to roudning off GL account.
    Regards
    Mani

  • I have an Iphone OS 4.3.3 and need to update with a different library than the original.

    I have an Iphone OS 4.3.3 and need to update. I have not done so since the first Itunes library used to setup my phone was done on a friend's computer and is not longer available for me. Loading to a different library requires me to erase the contents before updating. I have already come to terms with the disappointing reality of losing my media, however, will my text message history, phone contacts/numbers, notes saved in the basic built-in notes app or ANYTHING else be effected or wiped during this process? Does the backup function secure this data even though I'm using a different Library?
    Hoping there's anyone with a promising answer to this concern.
    Thanks in advance,
    MS

    App content will not be lost as long as you back up the phone to the computer you plan to restore it from. See this for advice on how to deal with your situation: Syncing to a "New" Computer or replacing a "crashed" Hard Drive

  • Firefox always opens with a different URL than listed in the settings option, why?

    The homepage in the settings option of the firefox browser has been set to www.google.com.
    However it always opens with https://www.google.com/?gws_rd=ssl.
    Why?
    Please advise!
    Thanks.

    Hello,
    Don't worry, this should not cause any problems. Side to side, the sites look the same, just in the link it goes to it activates SSL security (That's good)

  • I just opened a new account for my daughter with a different email than mine, but all of my music library is now showing in her music library as well. please help

    Hi, I just created a new account for my six year old daughter. The problem is that my entire music library is now in her music library as well. Please help

    Again many thanks. I have tried to tidy up the folders as per your idiot guide- which term is appropriate for me
    Under iTunes Media though I do not have  folders for Books,iPod Games, Mobile Applications, Movies, TV Shows so I only have  Auto Add to iTunes, Music, Downloads and Podcasts - My question here is is this OK.
    Next - Library files that you mention are there but do not end .itdb
    Next  - in the main iTunes folder followingon from Artwork and Media folders  there is some other  iTunes database stuff like Library Extras, Library Genius, Library and Music Library(xml) all dated 10/02/12 plus MimiPlayer .dll dated 21/02/14 and Set Up Short Cut dated22/03/14  
    AND there is also a Programme Files folder with a sub folder holding file folders called CD Configuration,iTunes Resources, iTunes Help Resources, iTunes Mini Player Resources and Mozilla Plugins all dated 24/03/14 ( when I downloaded the new iTunes) and then a lot of application extension stuff from 2011
    To recap I unistalled the old 32 bit iTunes and installed the new 11.1.5 (64 bit) version over the weekend  SO is any of the old stuff listed above required.
    Outcome right now is that as previously I can only call up the Downloaded music not Podcats or CD copies.
    Regards
    David Pugh

  • I have a new Iphone but it's with a different account than my last Iphone.  How can I sync my contacts???

    I had an Iphone 4S from AT&T and now I own an Iphone 5S from Sprint.  the two accounts are mine but I have them under different Itune accounts.
    How can I sync my contacts????

    Thank you for your help.  Your answer helped me the best .  I have 2 I.d.'s because I my daughter was on my first account and I was getting all her text messages and it was messing up us both because I would get her stuff and she would get mine.  I use my phone for personal use and work.  I needed one separate account so my personal things stood personal. I'm sure there was a way to stop it but I'm always so busy working that I didn't have time and having another account was the easiest and least time consuming way.

  • How can i sync my ipod with a different computer than i previously used, how can i sync my ipod with a different computer than i previously used

    i have an ipod nano that when i plug it into my computer it does not register, how can i get it to where i can sync in to itunes?

    you must authorize a computer to sync it to iTunes.  Have you already authorized that computer?

  • Can I open a tab with a different page (of my choice) than my homepage?

    I dont think its possible but maybe someone can tell me Im wrong.  I wanted to open a tab with a different page than I open a new Safari window.  I would think this would be easy to do and I could just type in the URL I want, but Safari doesnt give me that option. If I go to Preferences/General to the open tab option , I only can do homepage/same page/book marks/ empty page/top sites.  I wish Safari had the option for me to type in the URL I want - just like I can with a homepage.
    So maybe someone wants to have the AppleStartPage as their homepage but wants their Gmail as their tab opening page.  Or GoogleNews as the homepage and USAToday as the tab page....or iGoogle as the homepage and Apple Store as the tab page...Well you get the picture.
    It seems like it would be such a simple t hing for Apple to do - a lot easier than creating Top Sites - but I dont see that option.  I hope Apple will change that in a Safari Update.  Why not give users more flexibility and choice in how they want to configure their computer experience?
    If Im wrong, pls tell me how to set the tab for the URL that I want.

    Try disabling Resume:  How To Disable Lion's 'Resume' Feature - MacRumors.com
    Then set your home page.

  • How do i sync my iphone with different contact than what i have on my ipod

    how do i sync my new iphone with a different contanct than what i have on my ipod

    See these 2 Links...
    Recovering your iTunes library from your iPod or iOS device
    https://discussions.apple.com/docs/DOC-3991
    Syncing to a New Computer...
    https://discussions.apple.com/docs/DOC-3141

  • Verizon Messages - sign in with a different number

    I had an iOS device and I could sign in with a different number than the Mtn that was on my device. I now have an android device and I can't figure out how to do that. It seems to default with the mtn that is on my phone. Any ideas?

    I have never heard of this capability. I didn't pay much attention, but as far as I know, my iPhone 6 defaulted to the phone number of the device.
    As far as I know, you cannot log into a different number on an android device. You could possibly go into the settings on the device and select "Disconnect Device" and see if it lets you sign in with another number. I am guessing it will only let you sign in with the device's number, though.
    There ARE differences between android and iOS devices and this may possibly be one of them.

  • FLEX working with a different JVM...?

    Hey I need help for this, because I don't know how to do it.
    My flex builder 2 is working with a different jvm than the one
    installed on my pc. The one I installed is JVM 1.5 and the one that
    Flex Builder 2 is using is JVM 1.4, and I've been having really big
    problems when launching it, and I think this might be the problem,
    so i would really appreciate if someone could tell me how to make
    FLEX Builder 2 work with JVM 1.5 (which is the one I
    installed).

    open jvm.config
    and set java.home to the path where the JVM you want to use
    is

Maybe you are looking for

  • Web Auth Re-Authentication Problem

    2500 series controller.  1140  APs. I have set my idle and session timout to both be 57600 (16 hours) yet we have users getting re-prompted for web auth every few hours. Please advise. (Cisco Controller) > (Cisco Controller) >*pemReceiveTask: May 02

  • Epson scan Epson Perfection V30

    After installing Maverick, my version of the Epson Scan programm voor Epson Perfection V30 doesn't work any more. Epson Main Support screen only tells me to go to the Apple software page to install an upgrade, but there is no such upgrade available.

  • Report similar to standard transaction

    Hi experts, I ve got a requirement wherein i need to develop a report which is similar to QA32 transaction (Inspection Lot selection. That is,  my client wants to add and remove only a few parameters from this standard transaction. For eg., i need to

  • OS X 10.9: Big Problems

    Has anyone upgraded to OS X 10.9? My projectors now are having trouble initializing certain xtras. I thought that signing the them might help. But the extras don't initialize even in director. I know that the projectors are good b/c if I play them on

  • Anyone willing to buy Audigy DDL pack for me?!

    i want the DDL pack for my audigy 2 zs but i dont have a credit card! i can send you the 4.72$ via paypal! if someone is willing to do this pls contact me!