Content-Length: 301022 | pFad | http://b.hatena.ne.jp/nilab/cairo/
今日は途中で起こされたような気がするせいか夢の中で夢を見ていた。最近似たようなことがあったような気もするし、夢の内容が似通っているような気もする。夢の中で夢を見ているなんて何と平和なことだろうか。 BMPx 0.12_RC11 is out. Changes, among others: Fix display of URIs in file info/about box Fix "Delete" key doesn't work until playlist context menu was shown Reset list adjustment to 0.0 upon removing all items from the list Proper handling of window delete event ("ALT+F4") for main and playlist windo
These are the Java bindings for GTK and GNOME. Featuring a robust engineering design, completely generated internals, a lovingly crafted layer presenting the public API, and steadily increasing coverage of the underlying libraries. You can use java-gnome to develop sophisticated user interfaces for Linux applications so that they richly integrate with the GNOME Desktop while leveraging the power o
注: この記事にライセンスは設定されていません。 早いもので来週末は日本Ruby会議2010です。日本Ruby会議では、たくさんいる(会ったことはないけど名前を知っている)参加者がお互いを認識しやすいように大きな名札をつけることが恒例となっています。 RubyKaigi日記でも名札には名前を大きく書きましょうと呼びかけています。この中で、「あらかじめ太くて大きなフォントで、黒々と印刷してきたものを持参して、名札に貼り付けるのはいかがでしょう。」と提案しています。しかし、自分でデザインするのはわりと面倒なものです。 そこで、kdmsnrさんが名札には名前を大きく書きましょうジェネレータを作りました。これはtwitter IDを指定するだけでRubyKaigi日記で提案されているようなデザインの画像を生成してくれます。 でも、印刷するならPDFの方が嬉しいよね、ということでPDFを出力できるよ
cairo で PNG ファイルを読み込んで、その上に AGG (Anti-Grain Geometry, libagg) で図形を描画して、 cairo で PNG ファイルを出力するサンプルコード。 #include <string> #include <cairo/cairo.h> #include <agg_color_rgba.h> #include <agg_rendering_buffer.h> #include <agg_pixfmt_rgb.h> #include <agg_pixfmt_rgba.h> #include <agg_renderer_base.h> #include <agg_renderer_scanline.h> #include <agg_rasterizer_scanline_aa.h> #include <agg_scanline_p.h> #i
このページには行き当たりばったりな表現が含まれます。 まとまった記事を期待する方は閲覧にご注意ください。 PNGの読み込み さて、線を引くだけではつまらないので、PNGも表示してみましょう。 SVGはどうやら簡単ではなさそうなので後回しにします。 表示したいPNG画像 今回はこの画像を読み込んでみます。 Cairoのマニュアルを読みながらがんばってみましょう。 cairo_surface_t* cairo_image_surface_create_from_png (const char *filename); Creates a new image surface and initializes the contents to the given PNG file. (PNG Supportから引用) 英語ですが、ほとんど関数名と定義が内容を物語っているので読むのには苦労しません。 これ
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く
Fetched URL: http://b.hatena.ne.jp/nilab/cairo/
Alternative Proxies: