Example usage for java.awt RenderingHints VALUE_TEXT_ANTIALIAS_LCD_VRGB

List of usage examples for java.awt RenderingHints VALUE_TEXT_ANTIALIAS_LCD_VRGB

Introduction

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

Prototype

Object VALUE_TEXT_ANTIALIAS_LCD_VRGB

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

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 R,G,B such that the vertical subpixel resolution is three times that of the full pixel vertical resolution (VRGB).

Usage

From source file:TextQualityDemoVALUE_TEXT_ANTIALIAS_LCD_VRGB.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_VRGB));
    frame.pack();//from w  w w. j a v  a  2 s. c  o  m
    frame.setVisible(true);
}