Changeset 98

Show
Ignore:
Timestamp:
16/03/08 14:21:48 (8 months ago)
Author:
altglass
Message:

Links to online help. Perfection of similarity between how VLC draws semitransparent PNGs and how the editor draws them

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/vlcskineditor/Main.java

    r97 r98  
    935935            desktop = Desktop.getDesktop(); 
    936936            try { 
    937               desktop.browse(new java.net.URI("http://www.videolan.org/vlc/skins2-create.html")); 
     937              desktop.browse(new java.net.URI("http://www.videolan.org/vlc/skinedhlp/")); 
    938938            } 
    939939            catch (Exception ex) { 
     
    942942      } 
    943943      else { 
    944         JOptionPane.showMessageDialog(null,"Could not launch Browser","Go to the following URL manually:\nhttp://www.videolan.org/vlc/skins2-create.html",JOptionPane.WARNING_MESSAGE);     
     944        JOptionPane.showMessageDialog(null,"Could not launch Browser","Go to the following URL manually:\nhttp://www.videolan.org/vlc/skinedhlp/",JOptionPane.WARNING_MESSAGE);     
    945945      } 
    946946    } 
  • trunk/src/vlcskineditor/Skin.java

    r92 r98  
    558558    code+=" webpage=\""+themeinfo_webpage+"\""; 
    559559    code+="/>\n";     
    560     code+="<!-- This skin was created using the VLC Skin Editor by Daniel Dreibrodt (http://forum.videolan.org/viewtopic.php?f=15&t=38973)-->\n"; 
     560    code+="<!-- Created using the VLC Skin Editor "+m.VERSION+" (http://www.videolan.org/vlc/skineditor.php)-->\n"; 
    561561    for (int i=0;i<resources.size();i++) { 
    562562      code+=resources.get(i).returnCode(); 
  • trunk/src/vlcskineditor/resources/Bitmap.java

    r96 r98  
    145145            int blue = argb & 0xff; 
    146146            int alpha = (argb >> 24) & 0xff;             
    147             if(image.getRGB(x,y)!=alphargb && alpha>=255) { 
    148               g2d.setColor(new Color(image.getRGB(x,y))); 
     147            if(image.getRGB(x,y)!=alphargb && alpha>=255) {               
     148              g2d.setColor(new Color(red, green, blue, alpha)); 
    149149              g2d.drawRect(x,y,0,0); 
    150150            }  
    151151            else if(image.getRGB(x,y)!=alphargb && alpha>0) { 
    152               g2d.setColor(new Color(red,green,blue)); 
     152              float amount = alpha; 
     153              amount = amount/255; 
     154              System.out.println(alpha +" --> "+amount); 
     155              g2d.setColor(new Color((int)(red*amount), (int)(green*amount), (int)(blue*amount)));               
    153156              g2d.drawRect(x,y,0,0); 
    154157            } 
     
    334337            desktop = Desktop.getDesktop(); 
    335338            try { 
    336               desktop.browse(new java.net.URI("http://www.videolan.org/vlc/skins2-create.html#Bitmap")); 
     339              desktop.browse(new java.net.URI("http://www.videolan.org/vlc/skinedhlp/res-bitmap.html")); 
    337340            } 
    338341            catch (Exception ex) { 
     
    341344      } 
    342345      else { 
    343         JOptionPane.showMessageDialog(null,"Could not launch Browser","Go to the following URL manually:\nhttp://www.videolan.org/vlc/skins2-create.html",JOptionPane.WARNING_MESSAGE);     
     346        JOptionPane.showMessageDialog(null,"Could not launch Browser","Go to the following URL manually:\nhttp://www.videolan.org/vlc/skinedhelp/res-bitmap.html",JOptionPane.WARNING_MESSAGE);     
    344347      } 
    345348    }