呑む - PixelGrabber使ってます。 2009/11/17
2009/11/18

__________________________________________________
__________________________________________________
________________@@________________________________
____________@@@@@_@__________@____________________
__@@@@@@@@@@_________________@____________________
__________@__________________@___@__@@____________
__________@_____________@@@@@@@@@@____@___________
_________@______________@@@@@@@________@__________
_@@@@@@@@@@@@@@@@@@@@________@__________@_________
_@@@@@@@@@@@@@@@@@@@@________@___________@@_______
________@___@______________@@@___________@________
_______@_____@____________@@@@____________________
_______@______@__________@___@____________________
______@________@@_______@@___@@___________________
____@@@@@@@@@@@@@@_______@___@________@@__________
___@@@@@@@@@@@@@@_@______@@@@__________@__________
_@@__@@________@@__@@@____@_@__________@__________
_@___@@________@@___________@__________@__________
_____@@________@@__________@@__________@@_________
_____@@________@@___________@_________@@__________
_____@@@@@@@@@@@@___________@@@@@@@@@@@___________
_____@@@@@@@@@@@@_____________@@@@@@______________
_____@@________@@_________________________________


Javaです。
PixelGrabber使ってます。

うーん。だめだめですね。
Orz...
失敗ですね。
アスキーアートどうつくるのかしら...

ブラウザで表示する際に、<pre style="font-family:MS ゴシック;"></pre>で囲むようにした。


import java.awt.Font;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import java.awt.image.PixelGrabber;

public class Aascii {

public static void main(String[] args) throws InterruptedException {
a();
}

static void a() throws InterruptedException {
int w = 50;
int h = 23;
BufferedImage image = new BufferedImage(w, h,
BufferedImage.TYPE_INT_RGB);
Graphics2D g2d = image.createGraphics();
g2d.setFont(new Font("", Font.PLAIN, 22));
g2d.drawString("呑む", 0, 21);
g2d.dispose();
PixelGrabber grabber = new PixelGrabber(image, 0, 0, w, h, false);
// System.out.println(grabber.grabPixels());
grabber.grabPixels();
Object o = grabber.getPixels();
int[] is = (int[]) o;
int pos = 0;
for (int y = 0; y < h; y++) {
for (int x = 0; x < w; x++) {
if (is[pos++] != 0) {
System.out.print("@");
} else {
System.out.print("_");
}

}
System.out.println();
}
}
}

:

匿名

上原さくら 生放送で黒パン見せまくり

上原さくらがお昼の番組「ごきげんよう」で話に夢中になりすぎて黒のパンツを見せまくりました。

お昼からお茶の間にこんなサービスして何を考えてるのだか・・・

http://sakupanpan.blogspot.com/