Results 1 to 4 of 4

Thread: change color

  1. #1
    faraa is offline Member
    Join Date
    Mar 2013
    Posts
    70
    Rep Power
    0

    Default change color

    Hi
    Is there any way to change the background's color of an image that draws in applet ?(except image processing)
    Thank's in advance...

  2. #2
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,335
    Blog Entries
    7
    Rep Power
    20

    Default Re: change color

    If the image has a transparent colour it's easy: first fill the entire plane with a background color and next draw the image. If there is no transparent color, you're out of luck and you have to perform a bit of surgery on the image.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  3. #3
    faraa is offline Member
    Join Date
    Mar 2013
    Posts
    70
    Rep Power
    0

    Default Re: change color

    Thank you...
    It doesn't have transparent color...and I am out of luck....!!!
    can you explain more about that surgery??
    Thank's...

  4. #4
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,335
    Blog Entries
    7
    Rep Power
    20

    Default Re: change color

    If all colors in that image are opague colors, at least one of them represents its background color; if you want to change the background color you have to change that particular color.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

Similar Threads

  1. Change font color
    By HELPME2 in forum New To Java
    Replies: 24
    Last Post: 01-17-2013, 10:58 PM
  2. How to change background color
    By Jeffrey4u in forum Sun Java Wireless Toolkit
    Replies: 0
    Last Post: 10-22-2011, 08:32 AM
  3. PLEASE HELP! how do i change the color of a pattern?
    By armedrabbit in forum New To Java
    Replies: 9
    Last Post: 04-20-2011, 08:51 PM
  4. Change color of a region
    By sky in forum AWT / Swing
    Replies: 5
    Last Post: 11-24-2009, 03:47 PM
  5. How to change TXT color Onclick
    By dave700800 in forum New To Java
    Replies: 1
    Last Post: 12-08-2007, 01:39 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •