Example usage for java.awt Graphics drawBytes

List of usage examples for java.awt Graphics drawBytes

Introduction

In this page you can find the example usage for java.awt Graphics drawBytes.

Prototype

@SuppressWarnings("deprecation")
public void drawBytes(byte[] data, int offset, int length, int x, int y) 

Source Link

Document

Draws the text given by the specified byte array, using this graphics context's current font and color.

Usage

From source file:MainClass.java

public void paint(Graphics g) {
    byte[] b = { 0x65, (byte) 'B', 0x66 };

    g.drawBytes(b, 0, b.length, 10, 30);
}

From source file:Main.java

public void paint(Graphics g) {
    byte[] barray = { 0x41, 0x42, 0x43 };

    g.drawBytes(barray, 0, barray.length, 10, 30);
}