Background of the image?

Hello again,
I have an image which has a white background and some stuff drawn in the middle, How can I display it without the white stuff as the background?
thanks

You can't magically alter an image without altering it.
If you don't want to use Photoshop, you could do the identical thing in code, but it's going to be harder.
You could load the image, and then modify it such that the color white gets replaced with a transparent color.
How you do that would depend on how the image is represented (e.g., an indexed color model could be altered differently, and probably more easily, than other color models).
You might be able to find a library that does the image modification for you. I don't think there's anything in the standard library that would do this easily, though I could be wrong.
Unless there's some reason why you would want the image modification to happen programmatically at runtime, you're probably better off with pre-processing the image with Photoshop.

Similar Messages

  • Last night suddenly when I right-click-view-images in firefox, they appear centered and against a black background. It's usually meant to be a white background and the image appearing at top left. How to revert it?

    I'm having trouble with something in firefox, it's quite minor but still bugs me. Last night suddenly when I right-click-view-images in firefox, they appear centered and against a black background. It's usually meant to be a white background and the image appearing at top left. I can't remember what I did to change this if it's my fault; if someone knows how to revert it I'd be thankful.

    cor-el : thanks for the pointers! I wish the solution isn't an add-on every time ... if such long-standing behaviour is going to change, the least that could be done is put in an about:config option to get back the old behaviour.

  • Finder Backgrounds Require the Image on the Computer

    I've had a particular folder on my computer with a background for quite a while now, I actually posted here about setting that up.
    Anyways, in going through moving some stuff around so there's not so much reandom stuff in my Documents folder, I decided it would be a lovely idea to move that image to my Dropbox, as I have a tendency to just chuck stuff there if I don't know where it should be at the moment.
    Anyways, I do this and, being the one to check on things like this, I go to the folder and the background is gone.
    Is there a way to keep the background in a folder without keeping the image in one place, or at all?

    Timothy Westman-Barth wrote:
    Is there a way to keep the background in a folder without keeping the image in one place, or at all?
    Hi Timothy,
    The image has to exist in some folder somewhere to show as a background in the Finder window that you choose to display it in. If you are trying to keep things orderly, perhaps create a folder in Pictures called Backgrounds for example, and keep all of your background images there.

  • Background color of the image

    Dear all,
    i am using Developer suite 10g on windows 7.
    i create a report, and insert one image which is in gif format.
    the background of the image is coming black when i insert it into the report.
    while, when i open it with windows previewer, there is no background of the image.
    kindly guide me how to remove the black color from the background of the image in report builder.
    regards.

    and when i try to call the report from form builder,
    it give the following error
    REP-536870981: Internal error
    REP-62204: Internal error writing the image BandCombine: a row of the matrix does not have the correct number of entries, should be OpImage.getExpandedNumBands(source0.getSampleModel(), source0.getColorModel()) + 1..
    REP-0069: Internal error
    REP-50125: Caught exception: java.lang.NullPointerException
    REP-0002: Unable to retrieve a string from the Report Builder message file.
    REP-536870981: Regards.

  • When I convert InDesign file to pdf, the background of my image is no longer transparent

    I am working with InDesign CS3, and when I place a .gif file onto the document, the background of the image is transparent, which is what I want. However, when I convert the InDesign file to a pdf, that same image shows up in a white box. Why is this happening? Is there a setting that I am missing when I convert it? Thanks in advance

    I am converting it via export, and actually it is an ai file, my apologies.
    The white box does not appear in InDesign print preview. 
    I corrected the link, but still no luck.
    I am opening the document in Adobe reader, and overprint preview is turned on.
    Keep the suggestions coming please! I really appreciate it.

  • Re: Change the image of the image Background panel

    Hi guys,
    I m wondering how can i change the background of the image I had set earlier on as the background of the JPanel using the overriding of paintComponent() method.
    What i need to do is to create a swing component with a changing image background abilities.. can anyone help me with it.. its urgent.. thanks!!!

    Hi.
    Please see code below. I hope it help you.
    Change the image name at the constructor of MainFrame.java and put that image to folder with class files.
    MainFrame.java:
    import javax.swing.*;
    public class MainFrame extends JFrame {
      public MainFrame () {
        ChangeBGImage panel = new ChangeBGImage();
        panel.setImage("ukr.jpg");
        getContentPane().add(panel);
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
      public static void main (String[] args) {
        MainFrame frame = new MainFrame();
        frame.setSize(400, 300);
        frame.setVisible(true);
    }ChangeBGImage.java:
    import java.awt.*;
    import java.awt.image.*;
    import javax.swing.*;
    public class ChangeBGImage extends JPanel {
      Image image;
      public ChangeBGImage (Image image) {
        this.image = image;
      public ChangeBGImage () {
        image = null;
      public void paintComponent(Graphics g) {
        super.paintComponent(g);
        if (image != null) {
          Rectangle rectFull = new Rectangle(0, 0, getSize().width, getSize().height);
          Graphics2D g2d = (Graphics2D)g;
          BufferedImage buffImg = new BufferedImage(image.getWidth(this), image.getHeight(this), BufferedImage.TYPE_INT_RGB);
          Graphics2D g2d2 = buffImg.createGraphics();
          g2d2.drawImage(image, 0, 0, this);
          TexturePaint imagePaint = new TexturePaint(buffImg, new Rectangle(0, 0, image.getWidth(this), image.getHeight(this)));
          g2d.setPaint(imagePaint);
          g2d.fill(rectFull);
      public void setImage(String imageURL) {
        MediaTracker mt = new MediaTracker(this);
        image = Toolkit.getDefaultToolkit().getImage(imageURL);
        mt.addImage(image, 0);
        try {
          mt.waitForID(0);
        } catch (InterruptedException ex) {
          ex.printStackTrace();
      public void setImage (Image newImage) {
        image = newImage;
    Sincerely,
    Victor Letunovsky
    AlarIT programmer
    http://www.AlarIT.com

  • White Background under an image

    Hello!
    I'm not English so I'm sorry for my bad english. I hope of able at good explain.
    I have a problem with after effects:
    I wanted to import an image in after effect. but when I imported it there was a white background under the image...
    So, I tried to delete this background with photoshop:
    I copied only the image in a empty level and I deleted the background level.
    When I imported the image there was another time the white background.
    How can I solve?

    But to what format did you save it? In order to retain the trnasprency, you need to use ther PSD format or formats like TIFF and PNG. Nothing is achieved, if you save to JPEG or such, since they cannot support transparency channels. Also make sure, you are actualyl importing the transparency by picking the layer in the PSD import dialog or importing the whole document as a comp. If you just choose to import the merged layers and still have the original in teh background, of course you will only end up without any transparency again... I recomemnd you read the help for Photoshop and AE on how to get the best out of both for such workflows...
    Mylenium

  • HT200285 I want to change my wallpaper to an image that was available before I upgraded to IOS 8.1.3 - a close-up image of long reedy  grasses with hazy light in the background. Greyish hues. Where can find the image & how do I get it back on my phone?

    I want to change my wallpaper to an image that was available
    before I upgraded to IOS 8.1.3 - a close-up image of long reedy  grasses with hazy light in the background.
    Greyish hues. Where can find the image & how do I get it back on my phone?

    I want to change my wallpaper to an image that was available
    before I upgraded to IOS 8.1.3 - a close-up image of long reedy  grasses with hazy light in the background.
    Greyish hues. Where can find the image & how do I get it back on my phone?

  • How do i set a background of the button as an image??

    hey guys... i was wondering if there is a way i could change the background of spark button component to an image??
    ive looked into the icon property of the spark button, but thats not what i need... i need the entire background of an image to be an image...
    any ideas??
    thanks in advance!!!

    Something like this: http://blog.flexexamples.com/2010/04/29/setting-a-bitmap-fill-on-a-spark-button-control-in -flex-4/
    Peter

  • I am working in pages with a template and want to keep the image but get rid of the black background?

    I am working in pages with a template and want to keep the image but get rid of the black background?

    Surprise surprise but we can't see what you are looking at and referring to.
    What black background?
    If it is black background in the actual photo:
    Menu > Format > Instant Alpha > drag the cursor over the colored background you wish to remove
    Peter

  • T-Shirt designing #2: How do I change the background of my image?

    Using CS6...
    I'm also using the t-shirt template.
    On my screen is a t-shirt with a small rectangle inside of it. And another large rectangle beside it. I plan on making my image inside of the large rectangle (which is also the guide).
    Right now it is white but I would like to change it to different colors and I would need for this color to be part of the image once completed. I tried clicking on stuff (everything is highlighted) but the background color within the guide never changes.
    Can someone provide the steps?
    Sincerely,
    Rookie

    Wdautrion, Christ-Guard, others,
    I originally skipped this thread because I assumed it was about the specifics of certain T-Shirt templates, based on the related #1 thread.
    However, its seemingly going on and on made me finally read it, and ponder.  I believe a few things are worth adding, even if it may seem too long already.
    As I read the OP, it is simply a question about a rectangular Guide (a Guide that was originally created as a rectangle) which may seem to have a white fill and the wish to switch to another colour, to form a background that is part of the artwork.
    Had I read the OP before anything else had happened, I believe my answer would (just as simply) have been something like:
    Guides are non printing, and they have no fill. You can see that if you View>Show (Transparency) Grid.
    To get a corresponding coloured rectangular fill that forms part of the artwork, you may:
    1) Drag with the rectangle Tool from the top left to the bottom right of the Guide rectangle,
    2) Set the fill colour as desired and no Stroke,
    3) Lock the rectangle to avoid selecting it (until the artwork is finished).
    There are other ways, but I should prefer this to others that may require more explanation (such as a few involving releasing of the Guide).
    Other aspects of the thread are ways of learning, and of efforts/attitudes, including using the manual/helpfile.
    It is worth mentioning that the link in post #11 refers to only three out of four learning styles (VAK instead of VARK), the fourth being reading & writing. This is (just) one of many models, as it appears from this Wikipedia article (which also leaves the forurth one out):
    http://en.wikipedia.org/wiki/Learning_styles#Neil_Fleming.27s_VAK.2FVARK_model
    A fuller VARK explanation may be seen here:
    http://psychology.about.com/od/educationalpsychology/a/vark-learning-styles.htm
    I mention this because there is a crucial difference between visual and reading & writing, which I believe is important for this thread.
    Whichever faith anyone may have in such models, I believe there are significant differences in how different people learn.
    I also believe that no learning style should be frowned upon.
    I am convinced that some of the difficulties in mutual understanding, and in writing/reading posts, arise from such differences.
    With regard to efforts/attitudes, it is important to work smarter, not harder,
    http://en.wikipedia.org/wiki/Performance_consulting
    but what that means  rather depends on learning and working style(s). What is best and most efficient for one may appear as laziness, or as hard work, or as silliness, for another.
    Also, it may be argued that, depending on the actual task, the use of some features/procedures, maybe especially some of the easy ones in later versions, may be considered either efficiency or laziness/sloppiness.
    With regard to using the manual/helpfile, RTFM is a small effort for some, a greater or even forbidding one for others. Probably most would agree that it is much easier to use when you get used to to it and/or have known Illy for a while and know your way round.
    I only remember one instance, in another forum, with a poster actually declaring himself that he was lazy; and he was gently and friendly but clearly told to work on his attitude, which he agreed upon.
    You may say that all this is easy for me to say, because I am lucky to actually enjoy the challenge of finding ways to brídge differences and difficulties in learning, here and elsewhere. Some of what I do is to help and teach across styles. One recent urgent and pleasant challenge was a mid afternoon phone call from a carpenter about a simple crude (too) steep staircase/(step)ladder fitting a certain space; he was completely at a loss. I asked when he was going to build it, and the answer was: "Now". He was on the site, and all he had to work with were some leftover 45x245 mm rafters. I asked for the height from floor to floor (total rise) (2230 mm) and the available horizontal space (containing the total going and then a bit) (1500 mm); 10 minutes later, I could tell him an adapted/failsafe way to shape the stringboards and place the steps, with only four measures to mark, the rest being pure carpentry work, devised while getting the measures from a quick drawing with the help of Illy, of course. He fitted the staircase precisely and was happy (as was the customer), and baffled.
    In any case, now I said it.

  • Home page background photo not displaying after changing out the image

    I decided to edit the photo that was my background image for my desktop home page. Now it doesn't load when I access the site from my mobile or iPad even though it is there and displays fine from my desktop.
    I have a mobile version of my site with a link to the desktop version included in my navigation menu. I don't have a tablet version of my site.
    Any ideas what might be causing this? I'm stumped.

    Hey, Thanks Brad. It doesn't seem to be timing out (i.e there is no "processing" indicator in the browser the way it looks if something is trying to load). It gets all settled in and just never brings up the photo. It's a little reluctant to do so on the desktop, but after a half a second it goes ahead and puts it on there.
    Additionally, not sure if this is related,... but the text I have on the home page jumps about and is not a mirror image of what I see on the Muse design side. I had to put the text boxes on top of each other to get them to into place when I publish to desktop. They kept trying to go on top of the plane for some reason even though I had them placed just so on the design side. But this started happening before I replaced the image so maybe it's unrelated. Idk
    One thing, I wonder: I thought Muse did it automatically, but do I maybe need to optimize the photo for web? Outside of that, the only other thing I can think of to do is to delete the current home page and start fresh. But I'm afraid to do that. I don't know how to do that.
    Thanks so much for your help. I will PM a link fyi.

  • How can I place an image hot spot on top of a ap div with an image in the background of the ap div?

    It won't let me

    Right. You can't make an image map out of a background.  You must insert the image directly into the page (HTML markup).  Then apply hotspot tools to the image.
    HTML Image Map
    http://w3schools.com/html/tryit.asp?filename=tryhtml_areamap
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • How do I change the background to an Image in the web gallery wizard?

    Im using a flash gallery but I can only change the background colour I can't workout how to change the background to an image. Can it be done?
    Thanks
    Jamie

    Not directly this time, I believe, but by a post web gallery generation hack to the generated files.
    Don
    Don Ricklin, MacBook 2Ghz Duo 2 Core running 10.4.10 & Win XP, Pentax *ist D
    See LR Links list at my
    Blog for related sites.

  • Color match the 'white' background of 2 images

    I created an image with two cubes and added two dices to show the scale of the cubes. It seemed ok, but when I looked from a different angle I noticed the white of the background of the dices is different from the white of the total picture. How can I easily correct the background without messing up the shadows of the dices?

    You can use levels to pull off white to white. Try levels as an adjustment layer first, as that is non-destructive meaning to you alter or remove that layer any time in the future.

Maybe you are looking for

  • Deleted from Library, not from media folder, How to delete from media fldr?

    I attempted to delete a whole bunch of songs--iTunes asked: "Do you want to delete the selected song, or keep it in the itunes media folder?" I selected "keep file" by accident--so they are no longer in my library but still in my media folder. How do

  • I am not able to see Diagnostics logs in Admin Console

    Hi, I did some configuration changes in JDBC level and now i want to see diagnostics logs in admin console . But when i moved to Diagnostics--->log files---->server logs----> (selected managed server ) -->click view it doesn't display anything. Pleas

  • PI 7.0 default client Implications

    Hi all, We have installed my production server PI 7.0 earlier and it is currently operating for some projects. But the problem is the client on which the production system working now is 001 (i.e default client). This we have just noticed that it is

  • GPS/maps

    I have a BB 8520....I really like it (Ihad the TAP)  BUT it does not have the GPS navigation feature. I was told it was not supported. I would have to get the BB 9700 or 8900. I really do not want to change. Can I get a recommendation for an applicat

  • A Linux distro that teaches the user as he/she navigates?

    Hi, I was wondering about this idea I had about making a Linux distro that teaches users how to use the desktop while teaching them the fundamentals of Linux, like installing packages. It would a noob distro. So I wanna get ideas laid out and see wha