Making a color transparent

Hi all
i am designing a software that visualises property prices of houses. so i have images of houses all over the map. what i want to do is when i click a certain button, it shades the most expensive houses with dark red and least expenses houses with lighter red.
the problem i am facing is that, once i try to shade over the area of where a house image is, the house image disappears. the color is put in the fore ground and the house image disappears, so i was wondering if there is any way to make a color transparent so that the shade of red can be seen as well as the image of the house
thanks in advance
regards

Sure, just set an alpha value smaller than 1.0 (float) resp. 255 (int):
http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Color.html
-Puce

Similar Messages

  • Making a color transparent in many layers

    I'm using Photoshop Elements 5.0
    I want to create an animated gif using many layers of jpegs. Each layer is a picture of the earth (round) surrounded by the color black to the edge of the jpeg (square). However, I would like to make the outer border of black the transparent color.
    How can I easily make the color black the transparent color in all the layers of the gif, such that when the globe rotates on a white page the black is transparent?
    Thanks,
    Ken

    > Is there a way to do more than one layer at a time
    Assuming the area is identical in shape and location, then Don has given you the answer. Otherwise no.
    I just realised that I'm helping someone with an animated GIF again. And I am driven mad by Web pages which include the darned things...

  • Background-color:transparent !important; is not working in IE

    Hi,
    In my sharepoint site i have used "background-color:transparent !important;" css. It is not working in IE but in Mozilla is working fine.
    And I am using IE 11. Please let me know is there any thing wrong in the syntax. If that is the case please provide me correct solution for that.
    Any help would be greatly appreciated. 
    Regards,
    Saya 

    Thank you for your reply.
    I have checked given links. Those are not use for this issue.
    Actually in my sharepoint site the same code "background-color:transparent
    !important;" was working fine before installing sharepoint 2010 service pack 2. After installation we got this issue. And if i change "transparent"
    with any color, it is applying that color. Only "transparent"
    background css is not working in IE.

  • Do you know why the span style="color: Transparent;" build tag is set in topics as if by magic?

    Hello,
    We are using Robohelp 9 - 9.0.1.232
    It happens that some topics contain the <span style="color: Transparent;"> build tag.
    It seems that RH9 sets this tag by its own. We do not manage such tags.
    We come upon this while viewing one of our compiled CHM files. There was a big empty space inside a paragraph.
    We opened and found that the text was present. Using the HTML view, we discovered that the empty space in the CHM file corresponded to a paragraph included in the <span style="color: Transparent;"> build tag.
    For example, this morning, looking at a topic of another CHM file, we found When the tool runs,. The rest of the sentence was included in a <span style="color: Transparent;"> build tag.
    This is extremely annoying, as we do not know that this tag is set, until we discover it. We ar elikely to deliver doc with missing information without knowing it, until a customer complains.
    Has anyone encountered this or has an idea about this? How can we prevent RH9 from setting this tag?
    Thanks for your help

    Hi there
    First, let's get a bit clearer on our terminology, shall we?
    What you are seeing is not a "Build Tag". Sure, the Span indicates a tag and it's there when you build, but a "Build Tag" is a special tag inside RoboHelp that you apply to specific content that you wish to omit from the build using a counterpart known as a "Build Expression".
    A Build Tag in RoboHelp looks like this:
    <?rh-cbt_start condition="InProgress" ?>New model coming<?rh-cbt_end ?>
    What you are reporting is an inline styling element.
    Is this a project that began life in RoboHelp 9? Or was it created in an earlier version and was upgraded along the way? Does the same thing occur with a totally new topic you create?
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7, 8 or 9 within the day!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • Make List background color transparent

    hello all,
    i want to make my list background color transparent.
    this is my code:-
    import mx.styles.CSSStyleDeclaration;
    _global.styles.List = new CSSStyleDeclaration();
    _global.styles.List.setStyle("backgroundColor",
    "transparent")
    it is working fine but after using this code listbox
    selection listener stop working.Is there any other way to make list
    background transparent?
    thanks in advance

    I was having the same problem with a Tree Component. Just
    yesterday I found some code to let me do this. Where
    tabs.menuContent is the path to my Tree, or your List
    var mc = tabs.menuContent;
    _global.styles.ScrollSelectList.backgroundColor = undefined;
    mx.controls.listclasses.SelectableRow.prototype.drawRowFill
    = function(mc:MovieClip, newClr:Number):Void {
    mc.clear();
    if (newClr == undefined) {
    mc.beginFill(0xABCDEF, 0);
    } else {
    mc.beginFill(newClr);
    mc.drawRect(1, 0, this.__width, this.__height);
    mc.endFill();
    mc._width = this.__width;
    mc._height = this.__height;
    tabs.menuContent.border_mc._alpha = 0;

  • Textarea ...  background-color:transparent   causing problem in IE7

    hello;
    when I use <textarea style="background-color:transparent " > IE7 does not accept input ... other browsers work fine;
    is there a way to get a transparent background for a textarea such that the textarea functions correctly in IE7 ( I haven't tested it in IE8 )?
    thanks,
    Shannon

    What happens if you remove the background tag altogether?
    I do this with my overflow css for text boxes and it leaves them transparent (as in: showing the page background) in Firefox, Safari Opera and IE 5, 6, 7 and 8.

  • Hello, is there a way for making a photo transparent with iPhoto are another software?

    Hello, is there a way for making a photo transparent with iPhoto are another software?

    Not with iPhoto, but different apps have different capabilities.
    There are a couple of considerations: How is this transparent image to be used? In a Deskop Publishing environment something like Pages' Instant Alpha might be useful. Or if you're trying to overlay one image on another on a photograph then some editor that supports layers would be required.
    Further, Jpegs as a format doesn't support transparency so you'll need to work ina  file format that does.
    But if you can explain what you're hoping to do we might be able to point you in a more useful direction.
    In order of price here are some suggestions for editors:
    Seashore (free)
    The Gimp (free)
    Graphic Coverter ($45 approx)
    Acorn ($50 approx)
    Pixelmator ($50 approx)
    Photoshop Elements ($75 approx)
    There are many, many other options. Search on MacUpdate or the App Store.
    You can set Photoshop (or any image editor) as an external editor in iPhoto. (Preferences -> General -> Edit Photo: Choose from the Drop Down Menu.) This way, when you double click a pic to edit in iPhoto it will open automatically in Photoshop or your Image Editor, and when you save it it's sent back to iPhoto automatically. This is the only way that edits made in another application will be displayed in iPhoto.

  • How do you make drawing markup fill colors transparent?

    I'm working on a project where I'd like to identify locations on a map. I can use the polygon tool to make a red border around them, but I'd really like them to "pop" and would like to fill the polygons with transparent colors.
    I know how to make them be solid colors, but I cannot get them to be transparent. I'm sure there's a way - but I just haven't been able to find it at any of the forums. I'm using Acrobat XI on a Mac running 10.6.
    Here's what I am seeing:
    When I click on the grid below "Transparent" it removes the color. Seems to me there must be a way to make the solid colors transparent.
    Any suggestions?
    Thanks!

    Oh! Ok - I thought that opacity slider only addressed the opacity of the border, not the fill. Thank you!!
    What is the purpose of the grid shown under "Transparent"?

  • Color transparent Button

    hi all
    i wanna create color transparent button..
    can we do it in java? i search and try for few hours already
    but only can do the transparent.. i want have a soft color transparent in my button how to do that
    thx
    import java.awt.AlphaComposite;
    import javax.swing.JFrame;
    import java.awt.Color;
    import java.awt.Cursor;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.GraphicsEnvironment;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.event.MouseAdapter;
    import java.awt.event.MouseEvent;
    import java.awt.image.BufferedImage;
    import java.io.File;
    import javax.swing.ImageIcon;
    import javax.swing.Timer;
    import javax.swing.JButton;
    import javax.swing.JFileChooser;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    public class test_ys_button_fade extends JFrame{  
        public test_ys_button_fade(){       
            tes_panel panel = new tes_panel();              
            add(panel);
            panel.setLayout(null);
            setBackground(Color.WHITE);
            setDefaultCloseOperation(EXIT_ON_CLOSE);
            GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
            setSize(400,400);
            setVisible(true);
            setTitle("tes fade");
        public static void main(String[] args){
            new test_ys_button_fade();
    class tes_panel extends JPanel{       
        JButton[] bOpen = new JButton[5];   
        int iPosisiy;
        public tes_panel(){       
            //init_timer();
            for (int ilu=1;ilu<=1;ilu++){
                iPosisiy = (ilu*50) + 20;
                bOpen[ilu] = new TransparentButton("test");   
                /*bOpen[ilu] = new myButton(" Open ", 250, 20, 60, iPosisiy, ilu);
                bOpen[ilu].addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        BrowserControl.OpenURL("http://www.ipmart.com");
                });//emd ActionListener*/
                add(bOpen[ilu]);
            }//end for
        class TransparentButton extends JButton {
            BufferedImage buttonImage = null;
            int animationDuration = 1000; // each animation will take 2 seconds
            long animationStartTime;
            boolean boA=false;
            Timer index_timer;
            float alpha = 0.0f; // current opacity of button 
             public TransparentButton(String text) {
                 //super(text);
                 setOpaque(false); 
                 setFocusPainted(false);
                 setBorderPainted(true);
                 setContentAreaFilled(false);
                 setCursor(new Cursor(Cursor.HAND_CURSOR));
                 setVisible(true);
                 setSize(250, 20);
                 setLocation(60, iPosisiy);
                 //setBackground(Color.GREEN);
                 setBackground(new Color(50, 50, 50, 255));
                 addMouseListener(new MouseAdapter(){    
                 public void mouseEntered(MouseEvent evt) {
                    if(!boA){
                        animationStartTime = System.nanoTime() / 1000000;
                        ActionListener IndexTask = new ActionListener(){
                            public void actionPerformed(ActionEvent evt) {
                                boA=true;
                                long currentTime = System.nanoTime() / 1000000;
                                long totalTime = currentTime - animationStartTime;
                                if (totalTime > animationDuration) {
                                    System.out.println("ahahaha " + getName());
                                    index_timer.stop();
                                    alpha = 0.0f;
                                    boA=false;
                                float fraction = (float) totalTime / animationDuration;
                                fraction = Math.min(1.0f, fraction);
                                alpha = 1-(Math.abs(1 - (2 * fraction)));
                                int iId = 1;
                                bOpen[iId].repaint();
                        };//ActionListener
                        index_timer = new Timer(30, IndexTask);
                        index_timer.start();
             public void paint(Graphics g) {
                 Graphics2D g2 = (Graphics2D) g.create();
                 g2.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, alpha));
                 super.paint(g2);
                 g2.dispose();
                 //g2.setColor(new Color(255, 0, 0, 20));
        protected void paintComponent(Graphics g){
            super.paintComponent(g);
            Graphics2D g2 = (Graphics2D)g;
            g.setColor(Color.GRAY);
            g.fillRect(0, 0, getWidth(), getHeight());
    }

    A demonstration below. The only time it dosen't work is when the LAF dosen't honor the background color set on the button (there's only one such LAF on my machine --> Vista LAF). In this case the LAF paints over the color I filled the button with.
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.Color;
    import java.awt.AlphaComposite;
    import javax.swing.*;
    import javax.swing.UIManager.LookAndFeelInfo;
    public class ButtonTest {
        public static void main(String[] args) {
            SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    new ButtonTest().createAndShowGUI();
        private JFrame frame;
        private JButton opaqueButton1;
        private JButton opaqueButton2;
        private SoftJButton softButton1;
        private SoftJButton softButton2;
        public void createAndShowGUI() {
            opaqueButton1 = new JButton("Opaque Button");
            opaqueButton2 = new JButton("Opaque Button");
            softButton1 = new SoftJButton("Transparent Button");
            softButton2 = new SoftJButton("Transparent Button");
            opaqueButton1.setBackground(Color.GREEN);
            softButton1.setBackground(Color.GREEN);
            frame = new JFrame();
            frame.getContentPane().setLayout(new java.awt.GridLayout(2,2,10,10));
            frame.add(opaqueButton1);
            frame.add(softButton1);
            frame.add(opaqueButton2);
            frame.add(softButton2);
            frame.setSize(567,350);
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setVisible(true);
            Timer alphaChanger = new Timer(30,new ActionListener() {
                float incrementer = -.03f;
                public void actionPerformed(ActionEvent e) {
                    float newAlpha = softButton1.getAlpha() + incrementer;
                    if(newAlpha < 0) {
                        newAlpha = 0;
                        incrementer = -incrementer;
                    }else if(newAlpha > 1f) {
                        newAlpha = 1f;
                        incrementer = -incrementer;
                    softButton1.setAlpha(newAlpha);
                    softButton2.setAlpha(newAlpha);
            alphaChanger.start();
            Timer uiChanger = new Timer(3500,new ActionListener() {
                LookAndFeelInfo[] laf = UIManager.getInstalledLookAndFeels();
                int index = 1;
                public void actionPerformed(ActionEvent e) {
                    try{
                        UIManager.setLookAndFeel(laf[index].getClassName());
                        SwingUtilities.updateComponentTreeUI(frame);
                    }catch(Exception exc) {
                        exc.printStackTrace();
                    index = (index+1) % laf.length;
            uiChanger.start();
        public static class SoftJButton extends JButton {
            private static final JButton lafDeterminer = new JButton();
            private boolean rectangularLAF;
            private float alpha = 1f;
            public SoftJButton() {
                this(null,null);
            public SoftJButton(String text) {
                this(text,null);
            public SoftJButton(String text, Icon icon) {
                super(text,icon);
                setOpaque(false);
                setFocusPainted(false);
            public float getAlpha() {
                return alpha;
            public void setAlpha(float alpha) {
                this.alpha = alpha;
                repaint();
            public void paintComponent(java.awt.Graphics g) {
                 java.awt.Graphics2D g2 = (java.awt.Graphics2D) g;
                 g2.setComposite(AlphaComposite.getInstance(
                         AlphaComposite.SRC_OVER,alpha));
                 if(rectangularLAF && isBackgroundSet()) {
                     Color c = getBackground();
                     g2.setColor(c);
                     g.fillRect(0,0,getWidth(),getHeight());
                 super.paintComponent(g2);
            public void updateUI() {
                super.updateUI();
                lafDeterminer.updateUI();
                rectangularLAF = lafDeterminer.isOpaque();
    }

  • [iPhone] How to make one color transparent on a UIImage?

    On my iPhone app I have a UIImage instance. I want to get a derived a UIImage that is the result of the first UIImage where one of its colors (e.g. magenta) is made transparent. How can I do this?
    NOTE: I cannot make the color transparent in Photoshop, the UIImage is created on the fly by the user. I need to do the "postprocessing" on the phone itself, after the user is done "drawing" the image.

    jubgb
    I still do not know your version of Premiere Elements and  your computer operating system, but here is a plan that would probably work for Premiere Elements 11, 12/12.1, and 13/13.1 on Windows 7, 8, or 8.1 64 bit.
    But you say that you are starting with a black and white image. If you could start with the color version of the image, I think we have a promising path to have the fake blood appear in color on a black and white image.
    This would be done by applying the Color Pass effect to the color photo version. Color Pass Effect is  found under fx Effects/Image Control/Color Pass.
    Then you would edit the Color Pass effect under Applied Effects Tab/Appied Effects Palette/Color Pass Panel expanded. But I find that the most effective editing of that effect is done using the Setup whose icon appear to the right of the Color Pass Panel.
    Have you used the Color Pass effect before?
    https://helpx.adobe.com/premiere-elements/using/effects-reference.html
    I will offer how to suggestion for its use if interested. As for starting with the black and white, then I need to think about that some more.
    ATR

  • Color transparency problem

    I have following code
    var migScene:Scene =Scene{
        fill:Color.TRANSPARENT;
        content:MigLayout{
            fitParent:false;
            //layout:"fill";
            migContent:MigNode{
                constraints:"center";
                node:Rectangle {
                    width: 190, height: 340
                    arcWidth:40
                    arcHeight:40
                    fill: Color{red:0.27,green:0.27,blue:0.27}
    }I don't know why but there is a white/grey shadow around my rectangle ,that area should be transparent
    can anybody help me
    here is a pic
    http://www.flickr.com/photos/36001215@N07/3477871366/

    The answer was dead simple, think sleep deprivation finally got me,
    Thanx

  • Making colors transparent on another path..

    Okay, I'm pretty sure there's a name for this, but I don't know it, so I can't look up a tutorial on how to do this.
    If I have, for example, this image:
    http://wiki.scribus.net/images/8/8b/Circled2.png
    and the bigger blue circle is a SOLID circle, and the white circle is a SOLID white circle, and the white circle is on top of the blue circle, how do I make it so that all of the colors that are "in the way" of the white circle's path get erased? It's kind of hard for me to explain, but after they are "out of the way", the blue circle has a no color section where the white circle was.
    It's kind of like taking the path of the white circle, and putting it onto the blue circle, and then erasing everything in the path on the blue circle.
    If someone can give any input on this, it'd be great! Thanks in advance.

    Hello
    Do you mean Compound path its in illustrator under object try it out?

  • Making a Photo Transparent

    This is likely a rather rudimentary question with an equally rudimentary answer, but I'm a new Mac owner. I need assistance in turning a full-color .png or .jpg picture transparent, so that I can place it over a iMovie clip. How can this be accomplished. Additionally, an instructions on how to overlay a picture on a iMovie clip would be helpful

    Welcome to the Apple Discussions.
    That’s one for the iMovie forum, really. I don’t think iMovie 08 or earlier dos this kind of multi-track video? I know they’ve added Picture in Picture in iMovie 09. It’s quite simple to do with an app like Final Cut.
    I would post on the iMovie forum and find out if what you want to do is actually possible.
    Regards
    TD

  • Color transparency in table cells

    Hi;
    Is there any way to adjust the opacity of the background
    color of a table
    cell ?
    Thanks;
    Pat

    Thanks Murray. I'll give it a try.
    Pat
    "Murray *ACE*" <[email protected]> wrote
    in message
    news:fb44ib$6r1$[email protected]..
    > No - not background color. But you can make a PNG image
    with adjusted
    > opacity and use that image as a cell background - be
    aware that unadjusted
    > IE6 and earlier doesn't support PNG transparency. A
    google search will
    > reveal workarounds for you, though.
    >
    > --
    > Murray --- ICQ 71997575
    > Adobe Community Expert
    > (If you *MUST* email me, don't LAUGH when you do so!)
    > ==================
    >
    http://www.dreamweavermx-templates.com
    - Template Triage!
    >
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    > ==================
    >
    >
    > "Pat Jones" <[email protected]> wrote in
    message
    > news:fb447e$6cf$[email protected]..
    >> Hi;
    >>
    >> Is there any way to adjust the opacity of the
    background color of a table
    >> cell ?
    >>
    >> Thanks;
    >>
    >> Pat
    >>
    >
    >

  • Making a button transparent

    I'm designing a Japplet with JButton but i dont know how to make my buttons background transparent
    i read the color class tutorial but i actualy didnt understand it
    it gives lots of values like fload arrays or something
    can somebody tell me how can i make my buttons background transparent?
    Thanks

    It's always good to send an example as you finally did.
    That helps to find a solution:
    package applet;
    import javax.swing.*;
    import java.awt.*;
    public class backgammon extends JApplet{
        public Icon pulicon,bgIcon;
        private Image pul_s,background;
        public JButton b1;
        public void init(){
            //set layout:
            getContentPane().setLayout(null);
            this.setSize(744, 536);
            //set button:
            pul_s = getImage(getCodeBase(),"images/pul_sari.gif");
            pulicon = new ImageIcon(pul_s);
            b1 = new JButton(pulicon);
            b1.setBounds(50,50,42,42);
            b1.setContentAreaFilled(false);
            b1.setBorderPainted(false);
            getContentPane().add(b1);
            //set background:
            background = getImage(getCodeBase(),"images/background.jpg");
            bgIcon = new ImageIcon(background);
            JLabel bg = new JLabel(bgIcon);
            bg.setBounds(0,0,getWidth(),getHeight());
            getContentPane().add(bg);
    }

Maybe you are looking for