Changeset 98
- Timestamp:
- 16/03/08 14:21:48 (8 months ago)
- Files:
-
- trunk/src/vlcskineditor/Main.java (modified) (2 diffs)
- trunk/src/vlcskineditor/Skin.java (modified) (1 diff)
- trunk/src/vlcskineditor/resources/Bitmap.java (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/vlcskineditor/Main.java
r97 r98 935 935 desktop = Desktop.getDesktop(); 936 936 try { 937 desktop.browse(new java.net.URI("http://www.videolan.org/vlc/skin s2-create.html"));937 desktop.browse(new java.net.URI("http://www.videolan.org/vlc/skinedhlp/")); 938 938 } 939 939 catch (Exception ex) { … … 942 942 } 943 943 else { 944 JOptionPane.showMessageDialog(null,"Could not launch Browser","Go to the following URL manually:\nhttp://www.videolan.org/vlc/skin s2-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); 945 945 } 946 946 } trunk/src/vlcskineditor/Skin.java
r92 r98 558 558 code+=" webpage=\""+themeinfo_webpage+"\""; 559 559 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"; 561 561 for (int i=0;i<resources.size();i++) { 562 562 code+=resources.get(i).returnCode(); trunk/src/vlcskineditor/resources/Bitmap.java
r96 r98 145 145 int blue = argb & 0xff; 146 146 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)); 149 149 g2d.drawRect(x,y,0,0); 150 150 } 151 151 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))); 153 156 g2d.drawRect(x,y,0,0); 154 157 } … … 334 337 desktop = Desktop.getDesktop(); 335 338 try { 336 desktop.browse(new java.net.URI("http://www.videolan.org/vlc/skin s2-create.html#Bitmap"));339 desktop.browse(new java.net.URI("http://www.videolan.org/vlc/skinedhlp/res-bitmap.html")); 337 340 } 338 341 catch (Exception ex) { … … 341 344 } 342 345 else { 343 JOptionPane.showMessageDialog(null,"Could not launch Browser","Go to the following URL manually:\nhttp://www.videolan.org/vlc/skin s2-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); 344 347 } 345 348 }
