Confusion with  constructor of Color

Some constructors of the class Color take integer values for red, green, blure, and alpha. While the range of values vary from 0 to 255 which can be stored in just a byte type variable.
So why we are alocating extra memory by placing int type parameters in these constructors.
Can anyone please clearify it???
Regards

This is very simple code and there is no problem with code.
Code lines are
Color color=new Color(45,56,135);
JScrollPane spSelectedProps=new JScrollPane(lstSelectedProperties, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
spSelectedProps.setBorder(BorderFactory.createTitledBorder(spSelectedProps.getBorder(),"Properties",TitledBorder.LEFT,TitledBorder.TOP,new Font("verdana", Font.BOLD, 11),color));
spSelectedProps.setPreferredSize(new Dimension(width*30/100,height*67/100));
gbc.gridx=1;gbc.gridy=1;gbc.anchor=gbc.WEST;gbc.gridwidth=1;gbc.gridheight=2;
gbc.insets=new Insets(5,10, 0,0);
pnlContainer.add(spSelectedProps,gbc);
Thanks TimTheEnchantor for clearification
Regards

Similar Messages

  • Working with 32 bit color HDRs in Lightroom

    The feature of being able to work with 32 bit color Tiff files in Lightroom is awesome and wonderful.  However, I note that when I do not follow the recommended workflow of bringing the 32 bit file directly back into Lightroom to work on it - working on it with Adobe Camera Raw in Photoshop first - the results are somewhat confusing. I'm fine with following the recommended workflow except for the fact that I seem to be able to come up with even better results quite quickly using ACR.  ACR appears to give me a greater tonal range to work with, but when I save the file as a Tiff and take it back to Lightroom the colors aren't displayed correctly by Lightroom.  There is a huge difference between viewing the file in Photoshop and viewing it in LR. If I work on the file immediately in LR, avoiding doing anything in PS, the files look identical in both programs, but at the apparent cost of losing a lot of exposure range to play with.  Am I correct in inferring that LR is working on the 32 bit colors using a 16 bit color depth conversion in the tools? 

    https://dl.dropboxusercontent.com/u/106834366/Redux%20Vidz.aep
    This is kind of a project-ruining issue not being able to render it out in 32-bit -- I'm working with a lot of gradients and lens blurs.
    Anyone have any hints of why this might be happening?

  • Color problem with ProPhoto RGB color space

    Hi, everyone,
    I have wery special problem I think. I use MacBook pro 15" with retina display, adobe Photoshop CC and when I export RAW (from Nikon D7000) from Lightroom 5 to Photoshop with settings: 16 bit TIF, color space: ProPhoto RGB I have a problem with displaying the correct colors. As you can see in this picture:
    My problem are some "green" artefacts in absolutely black and white picture. I tried myself to solve this problem and found the following facts: when I convert picture into Adobe RGB or sRGB color space is everything OK - without green artefacts.
    But here is one important fact: I have calibrated monitor by datacolor spyder4elite and problem with ProPhoto RGB incorrect color displaying is only when the color calibration configuration is loaded. When I change my display calibration to standard apple color LCD profile than is everything OK.
    But using uncalibrated monitor and also Adobe RGB color space are no right solutions for me.
    My question is why I have problem with displaying ProPhoto RGB color space in photoshop under calibrated monitor profile and can anybody help me please?
    Thanks for answers.

    That's a classic example of the basic problem with 16 bit color. There is no solution that I know of.

  • How do I export a file with a CMYK color profile in Lightroom?

    I'm trying to save a photo with a CMYK color profile to send to a company who will print it for me. I've looked at the color profiles installed on my computer, and quite a few CMYK profiles appear to be there (in   /Library/Application Support/Adobe/Color/Profiles/Recommended). I'm not sure if they need to be in the "Profiles" folder specifically, or if it matters that they're in a subfolder of that folder. This is on a Mac computer, by the way.
    The problem is, when I go to export in Lightroom, and I choose "Other" in Color Profile, I'm not given any of the CMYK options.
    Thanks for your help!
    Ray

    ray7199 wrote:
    I'm trying to save a photo with a CMYK color profile to send to a company who will print it for me. I've looked at the color profiles installed on my computer, and quite a few CMYK profiles appear to be there (in   /Library/Application Support/Adobe/Color/Profiles/Recommended).
    Above and beyond what Jeff and John have told you, be VERY careful converting RGB to CMYK unless you have the specific ICC profile for that print provider. Probably a lot safer to send them tagged RGB and let them convert the data. Converting with a profile that isn't specifically targeted for the print process will produce huge headache's for you and the shop and potentially awful output which is going to be expensive. Ask them if they can accept RGB and send them maybe sRGB which of course you can do from Lightroom.

  • How do I mark the entire contents of a RichTextBox (gRTbxInfo) with a background color of white?

    How do I mark the entire contents of a RichTextBox (gRTbxInfo) with a background color of white?
    I have code that finds / marks words with a different color.  Now I want to remove that color.  I've started with the following, but cannot complete it.
        //int iLength = gRTbxInfo.Length
        int iLength = 10;
        TextRange trText = new TextRange(gRTbxInfo.Document.ContentStart, gRTbxInfo.Document.ContentEnd);
        TextPointer tpStart = trText.Start.GetInsertionPosition(LogicalDirection.Forward);
        TextPointer tpSelectionStart = tpStart.GetPositionAtOffset(0, LogicalDirection.Forward);
        TextPointer tpSelectionEnd = tpSelectionStart.GetPositionAtOffset(iLength, LogicalDirection.Forward);
        TextRange tpSelection = new TextRange(tpSelectionStart, tpSelectionEnd);
        tpSelection.ApplyPropertyValue(TextElement.BackgroundProperty, new SolidColorBrush(Colors.White));
    bhs67

    Isn't that just
    TextRange tr = new TextRange(rtb.Document.ContentStart, rtb.Document.ContentEnd);
    tr.ApplyPropertyValue(TextElement.BackgroundProperty, Brushes.White);
    Hope that helps.
    Recent Technet articles: Property List Editing;
    Dynamic XAML

  • My Iphoto version 8.1.2 stopped working today. Opens to a blank white screen with the little color wheel spinning indicating something running. I also cannot shut this window once opened without doing a hard shut down of my Mac Book Pro. What is wrong?

    Opens to a blank screen with the little color wheel running indicating that something is running everytime I put my mouse on page. I also cannot close the page or do anything concerning this page when the little wheel is running. This has gone on for hours. I can only close the page by doing a hard shutdown of by Mac Book Pro. Never had this happen before.

    Your main library is damaged.
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

  • Problems with CMYK/LAB colors

    I'm independent and I send many print jobs to different print shops. I recently discovered to my horror that some color critical jobs have gone to press (to the same shop) with mismatched PMS colors. At first I blamed the print shop but they complained the CMYK values did not match. When I opened the two brochures in question, one had (for example) Pantone 288 C, color type spot, Color mode CMYK, 100/67/0/23 (dimmed because the colors came from an imported illustrator eps logo). The second (bad) brochure had the same color and color type, but in the mix it had Color Mode: Lab, L 8.039, a 8, b -50 - greyed out because again, the color came from the SAME eps file.
    My next step was to remove the logo file from the bad Indesign doc. Then I doublechecked the color - success, the color now says color mode: Pantone solid coated, 288 C (which is from the built-in indesign swatch book). Then I brought BACK IN the logo file from the brochure that printed correctly. The color reverts back to LAB again!
    When I import this same logo into a blank document, the colors are fine (CMYK with proper values).
    I'd seen in other forums suggestions to check or uncheck "Use Standard Lab Values for Spots" in the Ink Manager, however both documents have this unchecked. (Adobe seems to encourage checking LAB but I've never done this, I'm afraid to start now as it will probably give my print shops fits.) And both have "convert spots to process" checked, which I always thought was the cure-all: shouldn't PMS 288 (CMYK) always be PMS 288 (CMYK), as long as both are converted to process? Why would one being a LAB and the other NOT being a LAB make them different? 288 should be 288....? (but I guess not....)
    The good news is, the Zevrix extension "InPreFlight" will warn me if run on each document, so I don't have to drive myself crazy opening old files and doubleclicking every color. But I'm wondering what the heck is happening.
    CLUE: I believe this all stemmed from a "brilliant" idea I had to shorten the list of color types to choose from by going into Indesign>Presets>Swatch Libraries and removing libraries I'd thought I wasn't using - I left all my Pantones, but I must have deleted an important one, because it was after I'd done this that I had noticed the Lab colors rearing their ugly heads. However it didn't occur to me that LAB (CMYK) would be different from regular CMYK since they have the same name. When I replaced this folder with one from another mac, viola, the problems stopped. However it doesn't stop the old, previously created files from continuing to open wrong and be printed wrong, if I don't catch them.
    Any insight anyone could provide would prove most helpful. It would be nice to get a night's sleep for a change.....thanks!
    FYI I'm using Indesign CS3 5.0.4 (recently updated) with Color Settings CMYK: U.S. Sheetfed Coated v2 and color management policies-preserve numbers (ignore linked profiles).

    >one had (for example) Pantone 288 C, color type spot,
    Mike, you are implying in your post that your jobs are being output as CMYK, but your colors are set as spots. If that's the case your printer is converting the spot colors to process CMYK, which would cause the problem you are describingPantone Solid colors are converted to CMYK via color management when Use Lab is checked. The resulting output values would depend on the document's destination CMYK profile.
    If your job is indeed CMYK you should stop using the Pantone Solid library and use the Solid to Process library instead, which always output as Pantones CMYK builds.
    Use Lab is useful when a job is to be output as Spot color because you will likely get a more accurate preview of the color and a better proof to a composite printer. Many Pantone colors are out of the CMYK gamut. Lab can also be useful if you are sending a job to CMYK and you want to color manage the conversion of a solid color to CMYK, rather than using Pantones built formulas which are device dependent.

  • How to highlight text with a translucent color

    I have to highlight text from a JTextArea, but the color is too dark... So I'd like to highlight with a translucent color. How can I do it ?
    Here is my code :
    JTextArea jt;
    int beginSelect;
    int endSelect;
    Highlighter hl = jt.getHighlighter();
    DefaultHighlighter.DefaultHighlightPainter hld = new DefaultHighlighter.DefaultHighlightPainter(Color.BLUE);
    try {
    hl.addHighlight(beginSelect, endSelect, hld);
    catch (BadLocationException e) {}
    Thank you.

    import javax.swing.plaf.*;
            Color color = new Color(220, 200, 240, 150);
            ColorUIResource colorResource = new ColorUIResource(color);
            UIManager.put("TextArea.selectionBackground", colorResource);Default for windows is [r=49, g=106, b=197]
    and for metal is [r=204, g=204, b=255].

  • How to underline with a different color than red (in Preview, with Mountain Lion)

    Hi,
    I'm using Preview to study and I would like to figure out how to underline with a different color please...
    Also, Is there a better app to read PDF document and highlight/annote/underline... to study...
    Thanks!

    In Adobe Acrobat Reader, you can control the color of the underline and the highlight from the Annotations panel. You would bring this into view from the View > Comment > Annotations menu hierarchy. The underline tool by default, has a green underline. You can change the color (and opacity) by right-clicking the green underlined ‘T’  and choose “Tool Default Properties.”
    This may have answered your second question if you find it easier to perform your markup with it.

  • How to Recover a Dark Picture with a Heavy Color Cast

    I just posted this article about how to recover a dark picture with a heavy
    color cast using Lab Color mode in Photoshop. I hope it will be helpful to
    others.
    http://www.braintrove.com/article/58
    Greg Collins
    Microsoft MVP
    Visit Braintrove at http://www.braintrove.com

    None taken. I am unfamiliar with ACR and would love to see (compare) what it
    could do with the sample PNG file in the article, and how much time it took.
    The results I achieved in the article took only a few minutes to
    complete--though as I mention below, it took more than a few minutes to get
    to the point where I could do it in a few minutes.
    I happened across a web site one day discussing the techniques in Margulis'
    LAB Color book, which interested me enough to purchase it. I found the book
    very enlightening and have seen incredible results using the techniques he
    describes as applied to my various images. I've also ready his Professional
    Photoshop book which focuses more on CMYK, and found many techniques in
    there just as enlightening.
    Ultimately the tools and techniques used are irrelevant if you get the
    results you want... but if you find one that works faster, easier or better,
    then certainly you should employ it.
    I have no problem working in RGB, CMYK or LAB and find benefits from each.
    The particular sample image I used in the article was one that I've spent
    (too much) time cleaning up in various ways and in various color spaces (or
    combinations thereof). It became my "poster child" image to work on as I
    continue to build my Photoshop skills. The approach I used in the article
    was the one I found most to be the fasted with the most effective results.
    The original was a 6MP JPG file. I reduced it to the size in the article and
    then worked on that size for the remaineder of the article. The resutls are
    equivelant in the fullsize file.
    Greg Collins
    Microsoft MVP
    Visit Braintrove at http://www.braintrove.com

  • Multiply filter in illustrator with a 2 color job-pdf and print issues?

    Hi,
    Encountering a tricky problem and not sure if its an InDesign fix or an Illustrator fix.
    I am working on a 2 color job—pms color + black on a book cover. The cover needs to seperate into these 2 colors.
    Also, I need to make a high res and lowres pdf that look like the cover to send out to marketing, sales etc.
    WHAT's THE PROBLEM?...
    Well, I am creating a collage with black ink vector graphics on top of the pms background. I created this art in illustrator CS3. it is saved as an .eps file. The illos were done by someone who used a white fill to knock out black areas. There is also a wide 50% grey outline around the illustration.
    I like the idea of the line of the illo being black and the fill being red so that it looks seethrough on the red background. But the 50% grey outline causes a problem...I'd like the 50% outline to blend with the red color, so instead of appearing like there is white in the ink it overprints.
    The only way I could think of (and quickest way) was to apply the multiply filter in illustrator to the vector illo. This seemed to work great.
    I brought the illo into InDesign CS3 where I created my cover layout.
    Looks great, Prints great. Separations appear to be good, although it shows the yellow, cyan, and majenta layer they appear to be blank, so I think it will seperate nicely into 2 plates–PMS + black.
    BUT, when I make a pdf, using "smallest file size" or using "high quality print", the pdf it makes does not show the illustrations in the collage. They are kind of beige and dulled out. The publisher needs pdfs too.
    Does this at all indicate that this job will not print correctly using this multiply filter, or is it all well and good final product wise, but its just an issue making the pdf? I am slightly nervous I am going to send this off to the printer and they will have some issue.
    I am a professional designer of 10 years with lots of print experience, but I have never used multiply in illustrator so I just want to make sure there is no rule against doing this I should know about. Does multiply at all mess with the color separations or is it fine? And how do I get my pdf to come out right? I'm hoping there's some dumb thing I'm forgetting, or a simple fix.
    Thanks for any insight you may have!
    L.

    If you don't feel comfortable using Multiply you might want to communicate with the printer and ask if this is an issue for them to reproduce correctly. Some printers using older rips may have issues with transparency. If you can't speak directly with your printer you could mark up the file or make a PDF to accompany the working file with your comments about what prints at what percentage, and if it should overprint or knockout. Years ago I would get a file with transparency in it and have to make sure the designers intent was clear. This was in some cases due to the designer not understanding blend modes or what he/she wanted overprinting or knocking out in the printed piece. The other way you can confirm the separations are going to rip correctly is to print a PDF out of Indesign and open it in Acrobat pro. Under Advanced>Print Production>Output Preview you can turn on and off separations for the 2 spot colors in question. Because PDF acts as your rip in this case you should be seeing what separations your printer will be printing using your native Indesign file. Some print shops will require you to provide a PDF or a color laser print out for QA of your printed piece when sending files to prepress.
    Hope this is helpful.

  • New bug in 8.02 - regions confused with each other

    So, I just updated to 8.02, and loaded up a recent project that was half finished (bad idea).
    Now I have some strange bugs going on that I never had before, and they are basic issues.
    My audio regions keep getting confused with each other.
    I have an audio region that I can't open in the sample editor. When I double click on it, the sample editor will bring up the last region I edited, not the new one. I've re-named the region, deleted it and re-added it to the arrange window, but this region will not open in the sample editor.
    I can see it in my media bin, and preview it there, and it plays in my arrangement no problem, but I can't get it to open in the sample editor. In fact sometimes when I click on it, with the media window open, I can see another sample being 'selected' in the media window instead of the proper audio region.
    Scott

    finally i find someone else with the same prob, o already post into apple.com too
    yes here the same, bug new in 8.0.1, cause on logic 8.0.0 all works fine (except some click noise when you pre-listen a file in autoloop)
    however here what i can say to you (it's 3 days i'm studyng this cause i make a massive use of ultrabeat)
    - no matter both power pc / intel soffer of this bug
    - i try to update to leopard from my 10.4.11 (same bug) tryin a new os installation (same bug), tryn without audio card and driver (same bug)
    so i really don't know how to solve it, cause there are only few people that have this problem
    big mistake and big mistery

  • Socket Programing in J2ME - Confused with Sun Sample Code

    Hai Everybody,
    I have confused with sample code provided by Sun Inc , for the demo of socket programming in J2ME. I found the code in the API specification of J2ME. The code look like :-
    // Create the server listening socket for port 1234
    ServerSocketConnection scn =(ServerSocketConnection) Connector.open("socket://:1234");
    where Connector.open() method return an interface Connection which is the base interface of ServerSocketConnection. I have confused with this line , is it is possible to cast base class object to the derived class object?
    Plese help me in this regards
    Thanks in advance
    Sulfikkar

    There is nothing to be confused about. The Connector factory creates an implementation of one of the extentions of the Connection interface and returns it.
    For a serversocket "socket://<port>" it will return an implementation of the ServerSocketConnection interface. You don't need to know what the implementation looks like. You'll only need to cast the Connection to a ServerSocketConnection .

  • I have been having a issue with getting the colors on my monitor to match the colors fro my print lab. I now have the monitor calibrated to match the prints but when I open elements it doesn't use the same colors. If i have it use the calibrated profile b

    I have been having a issue with getting the colors on my monitor to match the colors fro my print lab. I now have the monitor calibrated to match the prints but when I open elements it doesn't use the same colors. If i have it use the calibrated profile by changing the color management settings, the color picker no longer shows true white or black. How do I get elements 12 to honor the new calibrated settings?

    Ok so I've done what you said and this is what it's come back ....
    I don't know that these are the errors , but they're the things which don't look right ...
    Throughout the shut down there is a recurring line ;
    It says ;
    Com.apple.launchd 1 0x100600e70.anonymous.unmount 301 PID still valid
    Then there are 2 more which I think are related ;
    Com.apple.securityd 29 PID job has I overstayed its welcome , forcing removal.
    Then the same with fseventd 48 and diskarbitrationd 13
    Oh and on Launchd1 : System : stray anonymous job at shut down : PID 301 PPID13 PGID 13 unmount...
    Then the last process says "about to call: reboot (RB_AUTOBOOT).
    Continuing...
    And stops ...
    Hope this means something to you ... Thanks again for your help so far :-)

  • My photos are not printing right with adobe manages color but works when i use printer manages color. never had any issues untill a week ago.

    my photos are not printing right with adobe manages color but works when i use printer manages color. never had any issues untill a week ago.

    We use CS6, yes we calibrate using x-rite. I have always had adobe manage colors when printing. This problem just occurred, all my settings are the same as they have been for years. The only thing we did lately is do an update to CS6. We thought it might be our printer but when we use the printer manages color it works fine, The problem with adobe manages color is it is not blending the light highlights like on top of the cheeks with the colors around the cheeks  and its putting a faint red between the two it just does not have a smooth transition. I printed a photo that I had printed 4 months ago with no issue, and this time it had the issue that I am dealing with now. Somehow the photo shop manages color is not getting the right info to my printer.  
    I set paper type
    set quality
    no color adjustment
    set my profile
    Teri

Maybe you are looking for

  • How do I put a movie on my site with iWeb?

    (This is reposted here at Alancito's suggestion. Are there some iWeb '08 tricks which will allow me to do this...?) I'm trying to have a "before and after movie" on my site. (It's a simple graphic made with AppleWorks Draw, showing the mess before us

  • Using the the multiple profiles and running more than one instance of Fire fox at atim

    I use F/F in a gaming situation I needed to be able to run more than one session at a time and read about a feature called multiple profiles. Then I read iin another forum that I could have multiple instances with the following bat file : @echo off s

  • Business Objects XI 3.1 SP2 with BW Netweaver 7.01 EHP1 SP05

    Is anyone else out there running this combination of sap products? Are you successful? We are seeing a lot of inconsistencies with webi reports. We have reports returned with no data. We have some reports that run in one instance with data and the fo

  • XI Mapping lookups RFC API

    Hi mates, Can you please share with me the following document on XI Mapping lookups RFC API by Michal? https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-code-samples/xi%20mapping%20lookups%20rfc%20api.pdf This li

  • Creating a 'dotted line' from a 'solid line'?

    In Pages one can draw a line, and then choose to have it solid, or dotted, or a series-of-strokes (with a click). Is there anything comparable in Motion? I'd love to be able to turn my solid line into a 'dotted line' or 'series-of-strokes' with a sin