This is an automated email from the ASF dual-hosted git repository.

matthiasblaesing pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git


The following commit(s) were added to refs/heads/master by this push:
     new 5456c86  [NETBEANS-2260] Welcome Page header graphics
     new 5b90934  Merge pull request #2689 from 
mhalachev/NETBEANS-2260-Welcome-Page-header-graphics
5456c86 is described below

commit 5456c8675d37a46019bf113a43463e55ec3eb58b
Author: Martin Halachev <mhalac...@gmail.com>
AuthorDate: Mon Jan 18 17:03:01 2021 +0200

    [NETBEANS-2260] Welcome Page header graphics
    
    https://issues.apache.org/jira/browse/NETBEANS-2260
    
    - Update content banner image asset
    - Set bicubic interpolation before drawing
---
 .../modules/welcome/resources/content_banner.png     | Bin 37075 -> 3631 bytes
 .../netbeans/modules/welcome/ui/ContentHeader.java   |   6 ++++++
 2 files changed, 6 insertions(+)

diff --git 
a/nb/welcome/src/org/netbeans/modules/welcome/resources/content_banner.png 
b/nb/welcome/src/org/netbeans/modules/welcome/resources/content_banner.png
index adf6611..e645e71 100644
Binary files 
a/nb/welcome/src/org/netbeans/modules/welcome/resources/content_banner.png and 
b/nb/welcome/src/org/netbeans/modules/welcome/resources/content_banner.png 
differ
diff --git a/nb/welcome/src/org/netbeans/modules/welcome/ui/ContentHeader.java 
b/nb/welcome/src/org/netbeans/modules/welcome/ui/ContentHeader.java
index 838f30d..61c8d46 100644
--- a/nb/welcome/src/org/netbeans/modules/welcome/ui/ContentHeader.java
+++ b/nb/welcome/src/org/netbeans/modules/welcome/ui/ContentHeader.java
@@ -24,6 +24,7 @@ import java.awt.GradientPaint;
 import java.awt.Graphics;
 import java.awt.Graphics2D;
 import java.awt.Image;
+import java.awt.RenderingHints;
 import javax.swing.BorderFactory;
 import javax.swing.JLabel;
 import javax.swing.JPanel;
@@ -78,6 +79,11 @@ public class ContentHeader extends JPanel implements 
Constants {
         int width = getWidth();
         int height = getHeight();
 
+        RenderingHints rh = new RenderingHints(
+             RenderingHints.KEY_INTERPOLATION,
+             RenderingHints.VALUE_INTERPOLATION_BICUBIC);
+
+        g2d.setRenderingHints(rh);
         g2d.setColor( Utils.getBorderColor() );
         g2d.drawRect( 0, 0, width, 12 );
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to