Transparent part of a GIF icon
I cannot get my GIF icon to be transparent. I have edited my GIF so that parts of it are transparent but when I put it on my button the underlying color does not show through.
I haven't set any flags. Is there something I should do to make the GIF transparent?
I'm having the same problem with an application being migrated from Java 1.3 to Java 1.4. Under 1.3 the transparency is correct, under 1.4 it is lost on JButtons and JLabels. The transparency is set correctly (I verified it with PSP7), and it doesn't seem to make any difference whether I use GIFs or PNGs, transparency still doesn't work. Oddly there are some places where it does work (I used one image as a test because it was working in one place but not in another) and even that didn't work in the place where other images weren't working.
I'm running 1.4.2_01 on Win2K, but it also affects 1.4.1_03.
Any help would be greatly appreciated. I must admit that I've never had this problem before so I'm really perplexed as to why it's suddenly happening here. I think maybe there's something odd about the code, but since it isn't mine and since there is rather a lot it's rather difficult to tell.
Thanks,
Bart
Similar Messages
-
Gif icons no longer transparent?
I have dozens of icons on my desktop, the images are white-ish shapes with transparent backgrounds. After upgrading to Leopard, all of the transparent parts of the icons have turned white. So now I have just a bunch of white squares. Not very useful in my case.
If I go to view options and turn off icon preview, they just say "GIF" in them. How do I get back to the original way of viewing them? Thanks. -DerrylSorry, but that makes no sense to me. Can you please clarify what you mean? How will a text program remove the white border that 10.5 is putting around transparent images? Thanks.
-
Dev 6 Tree and Gif icons, SDI mode on WEB URGENT
Has anybody successfully displayed an icon in GIF format in the
Dev 6 hierarchical tree in a browser?
Even when I hardcode the path to the GIF icon it is not
displayed as part of a node in the browser window. Everything is
fine in C/S mode.
Second problem is that in Netscape Navigator or MS IE the window
is displayed inside he browser even when I give usesdi=NO as a
parameter. So some things are not displayed correctly and my
users really like the separate window.
Thanks for any answer
Frank
nullFrank Huether (guest) wrote:
: Has anybody successfully displayed an icon in GIF format in the
: Dev 6 hierarchical tree in a browser?
: Even when I hardcode the path to the GIF icon it is not
: displayed as part of a node in the browser window. Everything
is
: fine in C/S mode.
: Second problem is that in Netscape Navigator or MS IE the
window
: is displayed inside he browser even when I give usesdi=NO as a
: parameter. So some things are not displayed correctly and my
: users really like the separate window.
: Thanks for any answer
: Frank
Hi Frank,
The gif image in the tree item works well. The fact is that you
have to put the image in the directory where the registry.dat
file in the forms60\java\oracle\forms\registry directory points
to. Nearby the end of the file you find the possibiity to enter
the directory of your gif files. It's advisable to use the
absolute URL pointing to your gifs.
To achieve a separate window for the forms applet just implement
the parameter "SeparateFrame=true" to yout start HTML File.
Since
you are using IE you should do it like follows:
<PARAM NAME="separateFrame" VALUE="true">
Hope it helps
Frank
null -
Animated gif icon for an exception instead of the standard icon?
Hello,
is there a possibillity to use an animated gif icon for an exception instead of the red standard icon in a web template?
I tried to change the standard icon s_s_ledr.gif against an animated gif icon in the mime repository, but it does not work. In the IE the icon is still shown without animation.
Maybe I´ve changed the wrong icon?
Can you please help me?
Greetings
Andreas
Edited by: Andreas Zenner on Feb 25, 2009 1:22 PMHi Andreas,
it is possible to integrate own symbols for exceptions. If you can use animated gif I don't know. However there is a post over here explaining the usage of the modification for symbols:
Re: BI 7 Web Design API - Parameter modification - Exception symbol
If you have questions just let us know.
Brgds,
Marcel -
How can I export a smallformat flatten PDF-file with transparant parts in?
My post on a PDF - more clear with images (english):
http://www.logicontrol.be/gallery/documents/help-eng.pdf
Deze post in nederlandstalige versie:
http://www.logicontrol.be/gallery/documents/help-nl.pdf
Scope?
I'dd like to export an Indesign-file (.indd) to a PDF-file that has to be:
- the smallest possible file size
- which displays images and text sharp on the screen
- which also certainly remain transparent parts of .psd-files after exporting
- that is flattened for easy print
The problem?
▪ How and with which of settings can I export such a file from InDesign 5.0?
▪ If necessary in combination with some settings (after exporting) in our Adobe Acrobat 9 Pro?
Further explanation
The export file contains lots of text, graphics, photographs and drawings. Many of these items are .psd-files that contain transparent areas. The intention is that this transparent parts actually remain transparent even after exporting/flattening /decreasing the PDF.
▪ With InDesign 5.0?
→ In the window Export Adobe PDF: (images see: http://www.logicontrol.be/gallery/documents/help-eng.pdf )
Should I start from a default PDF preset (if yes > which one??)
Possibilities are: High Quality Print / PDFX-1a: 2001 / PDFX-3:2002 / PDFX-4:2007 / Press Quality / Smallest File Size
Or is it better to create a PDF preset on my own? (if yes > which settings??)
Standard > PDF/X-format?
Compatibility > PDF-version?
Compression > If artwork should be compressed and downsampled, and if so,
which method and settings to I have to use ?
Ouput > How can I control colors and PDF/X output intent profiles in the PDF-file?
Advanced > How can I control fonts, OPI specifications, transparency flattening, and JDF instructions are
in the PDF file?
▪ With Adobe Acrobat 9 Pro?
→ How can I reduce the file size extra, so more reducing after exporting into PDF ?
→ How can I flatten the exported file (if not done during the export) ?
!! Important, when I export/reduce/flatten the file, I ‘dd like that the parts of images who were transparent before, stays also transparent after !!
WHAT CAN I DO ??Hello,
I'm sorry you're having trouble. Unfortunately, this forum is for the ExportPDF service of Acrobat.com. The ExportPDF service functions as a PDF to *.docx file convertion and we can't help with problems specific to the desktop version of Acrobat or InDesign. I'm happy to point you in the right direction.
Acrobat Users moderated forums:
http://forums.adobe.com/community/acrobat
InDesign forums:
http://forums.adobe.com/community/indesign/indesign_general
Good luck! -
Why are transparent parts of ID file turning to gray in PDF?
The transparent parts of my InDesign files are going to gray boxes (x-ray looking) around them. I have done hundreds, if not thousands of PDF's from ID without an issue and all of a sudden this is happening. Though I have already figured out and used a jpeg work-around for now, I am still searching for the answer as to WHY this is happening all of a sudden, without any updates or changes on my end. WHY??? Can anyone else can shed a light on this? Thanks.
I guess the question is, has a recent automatic update in Adobe software (this happens in Illustrator CS5.5, too) created a change in how PDF's are processed through their software? Nothing I have done is different or has been reset...have used all of the software since it's creation, so I'm not a novice whatsoever. It appears that any shape that is created using the transparency/gradient feature in the software turns to gray in the PDF's when using the save as PDF internal software feature in every configuration (then opens in Acrobat Pro...not Apple Preview, which has it's issues). This has nothing to do with jpegs or anything else that is placed in the file (my reference to jpegs in my question is how I wound up saving the original file so everything would be flattened). This work around is not a solution for me.b I am trying to find out if I am stuck with this because of Adobe software updates or something changed recently. I am not the only person that has posted this issue on the web, but wanted to go straight to Adobe experts to see if anyone could shed any light on it. Thanks for your time.
-
9iDS forms 9i gif icons won't display
I have been on metalink and have yet to get a ggod answer on how to make my gif icons appear on my forms in 9iDS Forms 9i. I am on adevelopment machine and have modified my %ORACLE_HOME%\forms90\j2ee\orion-web.xml by addidng the folling lines:
<virtual-directory virtual-path="/webicons"
real-path="d:\webicons" />
Then I modified %ORACLE_HOME%\forms90\java\forms\registry\registry.dat file to read:
default.icons.iconpath=/webicons/
default.icons.iconextension=gif
and I've tried
default.icons.iconpath=/webicons
default.icons.iconextension=gif
and I've tried
default.icons.iconpath=webicons/
default.icons.iconextension=gif
My %ORACLE_HOME%\forms90\server\formsweb.cfg reads:
imageBase=DocumentBase
I was told to remove imageBase=DocumentBase from %ORACLE_HOME%\forms90\server\basejini.htm but I only found:
<PARAM NAME="imageBase" VALUE="%imageBase%">
imageBase="%imageBase%"
in that file. But, even commenting on or the other or both did not yield positive results.
After each modification to the above files I made sure that I closed the browser and stopped and re-started the OC4J Instance before opening the browser.
Once again, I am doing this on a development computer with all files on that computer and I am NOT deploying any of this to 9iAS.
What is wrong?
TIA,
Ed.Ed,
You're right, there's no reason that you must use the jar file method. For testing, it makes sense to use your images "as is".
I think I see the problem with your config. You should always do this test to to verify that you can see your icons before running your Form: look at your icon in a browser.
You said that you modified %ORACLE_HOME%\forms90\j2ee\orion-web.xml and created the following virtual path:
<virtual-directory virtual-path="/webicons" real-path="d:\webicons" />Restart your OC4J listener, and see if you can see the icon in your browser:
http://host:port/[color=red]forms90[color]/webicons/someicon.gif
I bet you can. That's because you edited the orion-web.xml for Forms, which affects everything under the /forms90/ path. That is, host:port/forms90/ is the document root to that orion-web.xml. This is perfectly ok, but in your registry.dat, you need to put in the full thing:
default.icons.iconpath=/[color=red]forms90[/color]/webiconsIf you want to do it the "normal" way, modify the following:
%ORACLE_HOME%\j2ee\Oracle9iDS\application-deployments\default\defaultWebApp\orion-web.xml
This is the xml file for the base web listener. Now you can see the icon in your browser:
http://host:port/webicons/someicon.gif
which will let you use the following in your Registry.dat file:
default.icons.iconpath=/webiconsSee, I told you that you were close!
Regards,
Robin Zimmermann
Forms Product Management -
GIF icon wont display in JList
Hello.
During development of a single application I've encountered a strange bug:
I am unable to display a gif icon in JList using JLabel as the cell renderer. Png icons work.
Could someone please point me to the obvious flaw in my example? :)
Example as netbeans project:
http://www.megaupload.com/?d=GVCDVO1F
Example code:
* GifIconInList.java
* Created on 28. srpen 2008, 11:03
package gificoninlist;
import java.awt.Color;
import java.awt.Component;
import java.net.URL;
import javax.swing.DefaultListModel;
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.ListCellRenderer;
* @author Bedla
public class GifIconInList extends javax.swing.JFrame {
DefaultListModel listModel = new DefaultListModel();
/** Creates new form GifIconInList */
public GifIconInList() {
initComponents();
class labelCellRenderer extends JLabel implements ListCellRenderer {
public labelCellRenderer() {
setOpaque(true);
public Component getListCellRendererComponent(JList list,
Object value,
int index,
boolean isSelected,
boolean cellHasFocus) {
if (value instanceof JLabel) {
JLabel label = (JLabel) value;
if (isSelected) {
label.setBackground(list.getSelectionBackground());
label.setForeground(list.getSelectionForeground());
} else {
label.setBackground(Color.white);
label.setForeground(Color.black);
return label;
return this;
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">
private void initComponents() {
jScrollPane1 = new javax.swing.JScrollPane();
jList = new javax.swing.JList();
addPngButton = new javax.swing.JButton();
addGifButton = new javax.swing.JButton();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
jList.setModel(listModel);
jList.setCellRenderer(new labelCellRenderer());
jScrollPane1.setViewportView(jList);
addPngButton.setText("Add PNG");
addPngButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
addPngButtonActionPerformed(evt);
addGifButton.setText("Add GIF");
addGifButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
addGifButtonActionPerformed(evt);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addContainerGap()
.addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 287, Short.MAX_VALUE)
.addGap(18, 18, 18)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(addPngButton)
.addComponent(addGifButton))
.addContainerGap())
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(31, 31, 31)
.addComponent(addPngButton)
.addGap(37, 37, 37)
.addComponent(addGifButton))
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 278, Short.MAX_VALUE)))
.addContainerGap())
pack();
}// </editor-fold>
private void addPngButtonActionPerformed(java.awt.event.ActionEvent evt) {
URL iconURL = GifIconInList.class.getResource("otevren.PNG");
Icon icon = new ImageIcon(iconURL);
JLabel label = new JLabel("PNG icon: " + icon, icon, JLabel.CENTER);
listModel.addElement(label);
private void addGifButtonActionPerformed(java.awt.event.ActionEvent evt) {
URL iconURL = GifIconInList.class.getResource("otevrenblik.gif");
Icon icon = new ImageIcon(iconURL);
JLabel label = new JLabel("GIF icon: " + icon, icon, JLabel.CENTER);
listModel.addElement(label);
* @param args the command line arguments
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new GifIconInList().setVisible(true);
// Variables declaration - do not modify
private javax.swing.JButton addGifButton;
private javax.swing.JButton addPngButton;
private javax.swing.JList jList;
private javax.swing.JScrollPane jScrollPane1;
// End of variables declaration
}I had write a program to display gif images inside a JList.
Here is the code
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.*;
import java.net.*;
import javax.imageio.ImageIO;
import javax.swing.*;
public class ImageList
BufferedImage[] images;
JList list;
public ImageList()
loadImages();
list = new JList(images);
list.setCellRenderer(new ImageRenderer());
private void loadImages()
String[] fileNames = {
"1", "2", "3", "4"
images = new BufferedImage[fileNames.length];
for(int i = 0; i < images.length; i++)
try
String path = "images/" + fileNames + ".gif";
URL url = getClass().getResource(path);
images[i] = ImageIO.read(url);
catch(MalformedURLException mue)
System.out.println("url: " + mue.getMessage());
catch(IOException ioe)
System.out.println("read: " + ioe.getMessage());
public static void main(String[] args)
JFrame f = new JFrame();
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.getContentPane().add(new JScrollPane(new ImageList().list));
f.setSize(400,400);
f.setLocation(200,200);
f.setVisible(true);
class ImageRenderer extends DefaultListCellRenderer
public Component getListCellRendererComponent(JList list,
Object value,
int index,
boolean isSelected,
boolean cellHasFocus)
// for default cell renderer behavior
Component c = super.getListCellRendererComponent(list, value,
index, isSelected, cellHasFocus);
// set icon for cell image
((JLabel)c).setIcon(new ImageIcon((BufferedImage)value));
((JLabel)c).setText("");
return c;
Here is netbeans project:
[http://www.mediafire.com/?nl29dl4tteu]
Note: If you check image 2.gif inside the src/images dir you will found that it is an animated gif but JList is displaying it as static image.
Bedla if you want both image and text then create a class like thisclass ListItem {
private BufferedImage image;
private String value;
public ListItem(
BufferedImage c, String s) {..}
public Color getImage() {..}
public String getValue() {..} -
How to handle transparent parts of layers in filter plugin?
What is the right way to handle layers in a filter plugin so as to preserve the colors at the semi-transparent edges of the opaque parts of a layer?
It seems the inData my plugin gets from Photoshop already has the image composited (based on the alpha channel) with a white background. So even if I just copy all the RGB and alpha data from inData back to outData, I end up with light-colored edges around the non-transparent parts of the layer. Simply setting inHiPlane=outHiPlane=3 (since all I really want to modify is the RGB data) doesn't seem to work either.Chris,
I'm not sure what you mean by treating it as if there was no transparency. Simply copying the RGBA planes from inData to outData results in those light-colored edges. Likewise if I set inHiPlane=outHiPlane=3 and just copy the RGB planes.
Can you tell me how to specify how the data should be matted? It seems to default to a white matte. Ideally, I would have thought I'd want to get from inData the color value at each pixel in the layer _before_ any matting is applied, along with the alpha values. Then for example, a red pixel at the edge that's 50% transparent would be RGBA = (255, 0, 0, 127). It seems like that's what my plugin needs to hand back to Photoshop (when I don't modify that pixel), in order for it to be able to correctly matte it against any background. Instead, what I get from inData is (255, 127, 127, 127), which then shows up when I hand it back as a pink pixel of 50% transparency on the edge. Can you tell me what I'm missing here? -
Mouseover/click transparent part of the image? Realistic?
Hi - i cannot find a way to make flex event system go through transparent part of the object. I want to be able to click inside the donut picture O and get to whatever object there is underneath it. I know i can get all the objects under the cursor, but is their an easy way to filter those wich have transparent pixel - the cursor pointing at?
Thank you!Hi
I was trying to create component in which there will be three childs
1st child would be Image
2nd child would be Control(Image,TextInput,Button)
3rd Child would be my Image Again but in this image(i.e source as png) there would be a Transparent part through whch i can see my Control(2nd Child)
I want to get Event on my Control
Suppose if it Button Then May be Click or If that control is TextInput So i needed Focus on it
For making events to happen i made changes to 2 property Image(i.e 3rd child)
1. mouseEnabled=false;
2.mouseChildren=false;
Making this changes i achieved what i wanted
If any one has better solution then Let me know
Thanks
Virat Patil -
Hello to everyone. I get a lock surrounded by an arrow in the part before the battery icon
hello to everyone. I get a lock surrounded by an arrow in the part before the battery icon, I can not turn the display screen to write or see internet, I would not have to restore the Ipod.Help me please
Your orientation lock it switched on. To turn off do this: Open the multitask bar by double clicking the home button, swipe from left to right until you see the lock icon next to the play controls. Tap on it to unlock and close the multitask bar again by clicking the home button.
-
Transparency problem with animated gif within AJAX overlay
Hello all,
I have designed and animated a loading spinner in Photoshop CS3, which needs to sit within an Ajax overlay, with transparency set to 75.
I tried exporting the spinner as an animated gif with a transparent background (using Save for Web), but it gave the animation a pixelated outside edge. Does anybody know how to remedy this?
As the Ajax overlay is semi-transparent, I tried exporting the animated gif with a black background and transparency set to 75%. I ticked the transparency box in the export window, but once it is loading in the Ajax it doesn't seem to be transparent (see here: http://www.chrisgartside.co.uk/flash/Screenshot.jpg)
Any help is very much appreciated.
Best wishes,
ruth.I forgot to mention that the Ajax pop-up is fired up from a Flash gaming applet.
Thanks very much in advance.
ruth. -
Loss transparency in an animated GIF image when resizing
Hi Friends,
I have to write a program to resize GIF, JPEG , and PNG images. I wrote and it works but when i resize a GIF file it loses its transparency and give a black color for transparent area.
I used a GifDecoder found at www.fmsware.com/stuff/GifDecoder.java
and a gif encoder found at jmge.net/java/gifenc/Gif89a090b.zip.
i don't know where the problem is .
i have some small problems in here.
How can i preserve the transparency of GIF image?
How can i set a transparent color in Graphic2D object? smtimes it may help me. or error may be in the encoder.
Help me guys.
Thanks and regards,
ManjulaJava comes with gif encoder/decoders.
Gifs are indexed images. This means that, for example, each pixel is an 8 bit value that is used to look up the correct 24 bit value in the index table. Gifs handle transparency by allowing one particular pixel value to be nominated as transparent.
If you just rescale the image then you will likely cause pixels with the magic "transparent" value to change their value and become normal pixels. Alternately pixels that are not transparent may have their values changed such that they are transparent.
Possibly the easyist solution to to force the image into a full RGBA image. Scale this then perform post processing on the image. I.e convert it back into an indexed image, looking at the values of the alpha channel (prior to making it indexed and if they are high enough then modify the corresponding pixel in the indexed image to have the magic transparent value. Then use Metadata passed to your Image writer to indicate which value is transparent.
matfud -
A transparent question mark on iTunes icon in dock/ iTunes won't open
Thanks for reading this and helping me--I have an iMac and a transparent question mark is in the middle of iTunes symbol in my dock. iTunes will not open at all when I try to open and there are no error messages.
ThanksOpen your Applications folder and locate iTunes. Drag it's icon to the doc. Drag the other icon out of the dock and it will disappear.
If you can't locate iTunes in your applications folder, download a fresh copy here: http://www.apple.com/itunes/download/ -
Error in applying gif icon on a button in 10g forms
Dear users...I wanna apply a gif image on a push button named "Pb_Ext" in my form but I'm being failed in this simple task :( For this purpose I've taken the following steps.
1: I made Iconic property to "Yes" and in icon filename property I gave the gif file name, in my case that is "bdone", which I got from 10g forms directory. (Is it necessary to write file extension with file name? Although I've tried both ways.)
2: I set up icons path value in registry.dat file as: default.icons.iconpath=H:\10g_Tst\03\03
default.icons.iconextension=gif
3: In formsweb.cfg file registry.dat file is defined as:
serverApp=default
So is there anything else remaining to be set up? Can u guess that where is the fault?One of this may help
Re: icons not displaying in oracle forms.
Re: Icon deploy issue in 10g forms
Re: cannot show icon images
Re: Step by step creation of iconic buttons
Maybe you are looking for
-
Flash file insert not showing up in Safari
Hi. I've got a simple artist's website that was created in Dreamweaver 8 with Flash MX file inserts for the images. I downloaded the new Safari for Windows browser yesterday to test it, and I'm getting the little blue box in place of the Flash files
-
Delete & Un locK purchase Order
Hi experts, How can i set a option for 2 users can not be Un LOCK the purchase order . how can i set option for only for 1 user to Unlock option. how to get this AUTHORIZATION in PFCG roles or is there any T code like JOY transaccions. becaus
-
Selbst programmiertes plugin in acrobat 6.0 online
ich programmiere ein neues annots werkzeug. ist ein solches selbst progammiertes plug in in der online version von acrobat (d.h. im internet explorer geöffnet) verwendbar (nicht alle plug ins stehen da zur verfügung)? ist es weiterhin möglich die but
-
Photos on the facebook app are not downloading
Photos on the facebook app are not downloading. After double tap, in the app, nothing happens. In Safari, often the message "access denied" pops up (also on ipad). Location services are set to on. Anyone else experiencing this?
-
Any way to download new IOS version, upload my music without synching to iTunes? Apple had to send me a new phone mine was so FUBAR'd after synching to iTunes :(