Example usage for java.awt RenderingHints VALUE_TEXT_ANTIALIAS_LCD_VBGR

List of usage examples for java.awt RenderingHints VALUE_TEXT_ANTIALIAS_LCD_VBGR

Introduction

In this page you can find the example usage for java.awt RenderingHints VALUE_TEXT_ANTIALIAS_LCD_VBGR.

Prototype

Object VALUE_TEXT_ANTIALIAS_LCD_VBGR

To view the source code for java.awt RenderingHints VALUE_TEXT_ANTIALIAS_LCD_VBGR.

Click Source Link

Document

Text antialiasing hint value -- request that text be displayed optimised for an LCD display with subpixel organisation from display top to bottom of B,G,R such that the vertical subpixel resolution is three times that of the full pixel vertical resolution (VBGR).

Usage

From source file:TextQualityDemoVALUE_TEXT_ANTIALIAS_LCD_VBGR.java

public static void main(String[] args) {
    JFrame frame = new JFrame("LCD Text Demo");
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.setPreferredSize(new Dimension(630, 460));
    frame.setContentPane(new MyPanel(RenderingHints.VALUE_TEXT_ANTIALIAS_LCD_VBGR));
    frame.pack();/*from   w  ww.  ja va  2 s  .  c  o m*/
    frame.setVisible(true);
}