How to read a picture with Transparent Background?????

i read a png file - a picture with transperent back ground - with READ PNG File and display it in my program using a Draw Flattened Pixmap function.
i get a very dark background- black coulour- in the picture created.
How can i resolve this problem???
Please give your suggestions
Many thanks in advance
RENN
Kudos always welcome for helpful posts

continue discussion here

Similar Messages

  • How to use/create icons with transparent background ?

    I would like to use icons with transparent background on JButtons, but I can't find how to do it. Until now, I've been using the ImageIcon class to create icons from GIF images. These images were created with MSPaint (sorry, I don't know what I could have used instead of that). Here is how I create my buttons :
    bPencil = new JButton(new ImageIcon("Pencil.GIF"));What could I do to make the background transparent and/or what software could I use instead of M$Paint ?
    P.S. : sorry if my question seems silly, but I'm a newbie in Java coding...

    Transparent images are GIF (256 colours) and PNG (true-colour, half transparency).
    You can store the image with your code, *.class files. You then even can deliver all inside a clickable, executable .jar file.
    This kind of usage is called "resource," and hence use getResource like this:
        java.net.URL imgURL = getClass().getResource("pencil.gif");
        ImageIcon icon = null;
        if (imgURL != null) {
            icon = new ImageIcon(imgURL, description);
        }You can use paths.
    There exist versions of MSPaint that easily loose their transparent colour on saving.
    For GIFs try internet palettes, or try to save as PNG (recent version).
    Start with a transparent image from elsewhere.

  • How to create image slice with transparent background without white halo around?

    Hi, I want to make slice image with transparent background. I set the slice option background color to my background color. But when the image is on my html page set against the same background color, it has white halo around:
    How can I get rid of the white halo?
    I need the slice image to have transparent background and not have a color background because it's going on a rollover button with the background change. I don't want it to look like this on rollover:

    >it looks to me like you built it with that "halo" to start with.
    No, I didn't put in the halo myself. The shape is a character from the Webdings font. It's set to some darker fill color and set on a transparent background. Photoshop put the white halo there after "Save For Web".
    > Make your graphic on a transparent background and Save for Web
    I did exactly that, see:
    I set the slice background to my color. I try the Matte option and come out the same with white halo.
    It seems I'm not making Photoshop antialias to my background color, instead Photoshop just antialias to white.
    What else do I need to do?

  • How to create typography jpg with transparent background?

    I am creating jpg artwork of typography to place on WIX.com and need to create the jpg with transparent background behind the font. Any suggestions that work?

    You're welcome.. If this solves the problem, be sure to mark the solving answer correct. This makes it easier for other users to find solutions for similar issues.
    Benjamin

  • How to make animations float with transparent background

    I am taking a graduate course in adv. web design for an ed
    tech program at a university. Neither my instructor nor anyone else
    in my class knows how to get Flash animations to have a transparent
    background, or even if this is possible. On behalf of us all, I am
    wondering if it is possible to create a Flash animation without a
    background--or with a transparent background, and then superimpose
    it onto a web page so that the web page's background shows through
    all but the animated part. We are using Flash 8. If it is possible,
    can someone please tell us how to do it? I have seen web pages
    where the animations float over the web page. Are these animations
    made with Flash or with another program? Thank you!

    Yes, it's easy, but haven't done it for a while, and not
    since all the new ActiveX stuff on MS IE requires Java Script to
    make the dotted outline go away.
    To do it well takes a combination of Flash with the
    publish-settings HTML Window Mode set to Transparent Windowless,
    and tightly-designed CSS with your animation positioned in a div
    that lies or overlays the exact place on the HTML page where you
    want it. You can even have it scale to the entire visible window,
    which can be quite cool. I did one for the holidays with snow
    falling over an HTML page. It can block lnks from working, though,
    so you can have the div (and animation) disappear when the
    animation is done.

  • How to export animated gif with transparent background and glow effect?

    I've been having issues lately with creating animated gifs in flash. I finally figured out a way to export a gif with a transparent background but I'm now having an issue with it again because I'm using a glow effect. When the gif is exported the glow effect changes into a very poor quality and becomes less of a glow and more like a solid color. I've even exported a png sequence from flash and put it into photoshop then created a gif from there but I'm still having the same issue. Is there anyway I can properly export this in gif form so the quality is the same as when I test it in flash?
    I've provided an image of what my issue looks like and the settings (I've messed around with the settings and this is the best I can come up with) . This is in photoshop but the result is similar in flash. The left one is what it originally looks like and the right is what it will look like after exporting. As you can see as I said before the glow changes into more of a solid color kind of like a border. Any help would be greatly appreciated, thanks in advance!

    A GIF is limited to 256 colors while a glow effect likely wants to tie up thousands (let's just say 'lots') of variations of tone.

  • How to I move gif with transparent background to jpg background?

    I am using the Master Squite CS 5.5 trail on Windows XP Pro with SP3.  I am not a Photoshop expert, but have done a fair amount for work with iit.
    I am trying to build some headers for websites and I know how to combine JPG images and text to ceate a header image.
    Now I have a couple of logos that I got in JPG format, converted them to GIF and made the backgrounds transparent.
    The "Move" tool doesn't seem to allow me to drag and drop a GIF image with a transparent background onto a JPG header background.  I tried converting the JPG header background to a GIF image too, but it won't let me move the transparent image to this background.
    I really need to get this to work somehow to create the professional look I want.
    Thanks!

    Your mistake is in assuming you need GIF anywhere in the process.
    Try this instead:  Paste your logo JPEG over the background as a separate layer, then remove the pixels you want to be transparent by either Deleting them or Masking them.
    -Noel

  • How to draw a box with transparent background ?

    Hi there,
    I want to do an effect where after I display the text, there will be drawing effect where it draws a rectangle around the text ?
    During the days of Final Cut Express, I bought plugins from LiveType, it has effects to do this.
    But dow to I do this now in FCPX ?
    Thanks

    Thanks Jim,
    It is a good tips that LiveType still works on Maverick !
    Now I gotta ransack my store room to look out for the LiveType dvd/disc ...
    Motion ? I thought Motion is very difficult to learn ... more difficult than After Effects ?
    Ok, i better look out for some tutorials on Motion then ... Motion can integrate with FCPX ?
    I just checked, the Motion that I have is Ver 5.0.7 (got this as a birthday gift). Is this compatible with Maverick ?
    Thnaks
    Jim Wanamaker wrote:
    A couple of thoughts. Livetype still works in Mavericks although I don't know about your plugins. You would have to try them. Obviously you can not send a livetype project to FCP X, but you could design your title and export it and then import to FCP X. That should work although you couldn't make any changes in FCP X. A second thought is to use Motion if you have it. You can easily create a title in Motion to do what you want by opening a title template, add and format text. Then add a bezier shape for your rectangle and use the write on behavior. Very simple to do.

  • How in Illustrator I write text with transparent background ?

    How in Illustrator I write text with transparent background ?

    that is correct. You open it in AI and you have an option to use area text, you first take the text tool and drag to make a text frame, which wors like it does in a layout program. Or you click the text tool any where on the canvas and just start typing if you want to make another line you either hit the return (enter) key or for  soft return use shift/return (enter).
    The default is a transparent background.
    All art i Illustrator is on a transparent background unless you add an object behind other objects that has a fill color.

  • How can I export a file with transparent background?

    Hi all,
    I know InDesign doesn't allow to export a PNG file, but I need my file to be in image file format with transparent background.
    I'm still learning so I am stuck here. How can I export a file with transparent background?

    If you can't get the PNG file export to work, you can export a pdf and open it in Photoshop, from there you can save it as whatever you like.

  • How do I transfer a .psd file to illustrator that can then be placed in Muse as a .svg with transparent background?

    I just wrote all this up in another thread.  I did not realize at the time that the last post was in 2014, so I'm giving it a go here.
    I am currently trying to create an .svg using Photoshop .psd file (with layers in tact).  I'm new to these products so it may be obvious to others that the above intention was to eventually place the .svg in some sort of website creation software such as Muse.  Which is precisely what I am attempting. However, I am getting a white background once I place or copy and paste into Muse.  My starting .psd has a transparent background without any hidden layers causing this problem.  To test this I placed the .psd file into Muse and it still has a transparent background.  However when opening or placing this file into illustrator, it picks up a white background. If I do exactly as described above, I still get the same result.  So far I have tried:
    1) Simple copy and paste from Photoshop .svg to illustrator to Muse.  Result - white background.
    2) Placing the .psd in illustrator, then placing the .svg file in muse.  Result - white background.
    4) I have also tried the every combination of 1 and 2. - Result - white background.
    3) I have now created a path in Photoshop from the text layer to yet again attempt the above methods.  Result - white background.
    I'm including an image of the object I am trying to place with transparent background, but I have both a flattened rasterized version, a version complete with layers and a third (.svg) with the corresponding objects.  I am completely new to Illustrator as of today so any help would be greatly appreciated.  Thanks.
    Link to .psd file "Welcome text"

    I was having some difficulties getting the correct dimensions of one of my objects, I eventually solved this problem without using svg.  It was pretty simple when I stopped trying to over complicate things.  I just linked the object to a near by object in photoshop, merged and placed it all as one.  It looks great now.  Thanks for your reply.  You are correct, SVG was not the answer.

  • How do i save a .png with transparent background?  cannot find in help

    how do i save a .png with transparent background?  cannot find in help

    rickseng
    With what program are you working and with what version of the program and on what computer operating system?
    I suspect that you are working with some version of Photoshop Elements. If that is correct, then be advised that some how
    your thread got posted in the Adobe Premiere Elements Forum (video editing) instead of the Adobe Photoshop Elements Forum (photo editing).
    If Photoshop Elements question, then please re-post your thread in the Adobe Photoshop Elements Forum or wait for a moderator
    here to see your thread here and move it from here to there.
    Photoshop Elements
    Thought....if are creating an image on a transparent background in Photoshop Elements Windows for a Premiere Elements Windows project, then you Save As png or psd.
    Please clarify if I have misinterpreted your question.
    Thank you.
    ATR

  • How to insert image with transparent background?

    I have several logos saved at .GIFs with transparent backgrounds that I would like to import into my dashboard, but it seems that the image component only supports JPEG.  Is there a way to import images while maintaining their transparency?

    Well, you CAN insert GIFs or other image formats.  But I have yet to figure out a way to take a GIF with a transparent background and import it into my Xcelsius while preserving the transparency.  The transparent background always just defaults to white.
    This is a crucial feature as I have some logos I want to use that are circular.  But if I can't give them a transparent background, it drastically limits their placement options.
    I know that flash does support transparency, so am I missing something here?

  • Image with transparent background shows up with a white background in ID

    Amateur needs help.
    I have a copy of a logo with a transparent background.  I made the (white) background transparent in PS by creating a layer from background and then selecting the white color in the background and deleting it.  This has always worked in the past.  But when I place this image into ID, it shows up with a white background.  I have tried saving as a PSD, TIF, JPG, etc.  I cannot get it to work. 
    I normally research these things until I find an answer, but I am on a tight deadline.  Thanks!

    I totally forgot to put that in my post.  Yes, I am putting logos with transparent backgrounds in front of colored rectangles.  That's how I noticed that this one logo is showing up with a white background.  The weird thing is that the other two logos are fine.  I did find a different version of this logo and this one works fine.  The one that works fine is a JPG and the one that shows up with a white background is a JPG.

  • Framing image with transparent background png frame

    hi,
    i'm trying to find a way to frame images with transparent background png frames...
    what i'm doing now is
    1-drawing my image on a panel
    2-creating a 2nd image using the frame's filename, stretching this 'frame-image' to a size slighlty larger than that of my main image and drawing the 'frame-image'
    the problems with this method are:
    1-depending on the width of the frame, the frame sometimes hides parts of the image (thick frame), and sometimes there is a gap between the frame and the image (thin frame).
    2-if the image file containing the frame is larger than the frame (Ex: The image is 300x300, the frame is centered in this image and is 200x200; as opposed to the image is 200x200 and the frame takes up all the space), when i position the 'frame-image' near the top left corner of the image i want to frame, the frame appears at the wrong place (shifted down and to the right). This is due to the fact that i'm placing the top corner of the created 'frame-image' and not the frame, who is not in the top corner of my 'frame-image'.
    Is there a way to do what i'm trying to do???
    My ideas (which i don't know how to achieve are)
    1-To 'analyse' my transparent background png file and
         1-only keep the frame,
         2-calculate the frame's thickness
    OR
    2-Let java do the analyzing for me and tell it to frame my image with the frame in the png file
    please feel free to ask for more explanations if my description/question is confusing,
    thanks.

    Have you looked into the Border interface? If what you really want to do
    is put a custom border on a component, you may be able to do it this way.
    Anyway, here is some code that stacks and centres 2 images. It's not hard to do.
    import java.awt.*;
    import java.awt.image.*;
    import java.io.*;
    import java.net.*;
    import javax.imageio.*;
    import javax.swing.*;
    public class Example extends JComponent {
        private BufferedImage backgroundImage;
        private BufferedImage foregroundImage;
        public Example(BufferedImage backgroundImage, BufferedImage foregroundImage) {
            this.backgroundImage = backgroundImage;
            this.foregroundImage = foregroundImage;
        public Dimension getPreferredSize() {
            int w = backgroundImage.getWidth();
            int h = backgroundImage.getHeight();
            return new Dimension(w, h); //assuming this is bigger
        protected void paintComponent(Graphics g) {
            super.paintComponent(g);
            int w = getWidth();
            int h = getHeight();
            //paint both, centred
            int x0 = (w-backgroundImage.getWidth())/2, y0 = (h-backgroundImage.getHeight())/2;
            g.drawImage(backgroundImage, x0, y0, null);
            int x1 = (w-foregroundImage.getWidth())/2, y1 = (h-foregroundImage.getHeight())/2;
            g.drawImage(foregroundImage, x1, y1, null);
        public static void main(String[] args) throws IOException {
            URL url1 = new URL("http://weblogs.java.net/jag/Image54-large.jpeg");
            URL url2 = new URL("http://weblogs.java.net/jag/DukeSaltimbanqueSmall.jpeg");
            JComponent comp = new Example(ImageIO.read(url1), ImageIO.read(url2));
            final JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(comp);
            f.pack();
            SwingUtilities.invokeLater(new Runnable(){
                public void run() {
                    f.setLocationRelativeTo(null);
                    f.setVisible(true);
    }

Maybe you are looking for

  • Error on deploying JSP web module

    Hi, I've created a JSP web module that consumes a web service. I'm following this tutorial [http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0cf9e42-ccb0-2c10-d0a4-f5aa8a79e19a?quicklink=index&overridelayout=true|http://www.sdn.sap

  • HP Photosmart Premium All in One C410 series - alignment issue

    Printer is disaligned, cannot realign, tried default, tried aligning a few times, same result - get the following message: Paper mismatch (using the same paper as before)and within a few seconds requesting to CANCEL, this stops the process  ???

  • How do I install FF on a drive other than Win 7?

    I'm trying to conserve space on my SSD (small) and just have the OS (Win 7) on that drive. So how do I install FF on another drive, as so many of my other application programs are stored? They work great without any hitches, so far. . . But I would s

  • How do I clean up the menubar?

    I have an old VPN icon there that I can't seem to get rid of...

  • How to change sip address after changing email address for bulk users

    We are in the process of adding new primary email address as [email protected] for 500 users.  current primary email address is [email protected] and  currently all LYNC users has sip address as [email protected] Now we need to change the LYNC SIP Ad