This shop will be powered by Are you the store owner? Log in here
This shop will be powered by Are you the store owner? Log in here
[編集]eclipse付属のヘルプ # Platform プラグイン・デベロッパー・ガイド プログラマーズ・ガイド Standard Widget Toolkit 参照 API参照 サンプルのガイド Standard Widget Toolkit SWT サンプル・ランチャーの使用 SWTのコントロールの動作をeclipse上で確認できる。 ウィンドウ→パースペクティブのカスタマイズ で、ウィンドウ>ビューの表示で、 SWT Controls / SWT Custom Controls / SWT Example Launcher / SWT Layouts を 有効にしておくと、ウィンドウ→ビューの表示で 簡単に選べるので便利。 ↑ [編集]SWT Standard Widget Toolkit サイト # SWT Standard Widget Toolkit http://www.e
Summary SWT's Image class can be used to display images in a GUI. The most common source of images is to load from a standard file format such as GIF, JPEG, PNG, or BMP. Some controls, including Buttons and TreeItems, are able to display an Image directly through the setImage(Image) method, but any control's paint event allows images to be drawn through the callback's graphic context. SWT's ImageD
ここでは外部の画像ファイルなどをBufferedImageに読み込んで色々と加工してみます。 まずは画像の読み込みと書き込みから見ておきます。現在はImageIOクラスという便利なクラスがありますので、このクラスの使い方から見てみましょう。 まずjavax.imageio.ImageIOクラスのクラス図を見て下さい。 このクラスはfinalクラスです。コンストラクタはありません。いくつかのメソッドが用意されていますが、ファイルからの読み書きにはreadメソッドとwriteメソッドを使います。 とりあえずreadメソッドからです。 read public static BufferedImage read(File input) throws IOException 現在登録されているものの中から自動的に選択された ImageReader を使用して、 指定された File を復号化した結果
Summary The package org.eclipse.swt.graphics contains classes that allows management of graphics resources. Graphics can be drawn on anything that implements org.eclipse.swt.graphics.Drawable, which includes org.eclipse.swt.widgets.Control and org.eclipse.swt.graphics.Image. The class org.eclipse.swt.graphics.GC encapsulates all of the drawing API, including how to draw lines and shapes, draw text
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く